[Slot 2 - 9th August 2024] Accenture Todays Coding Questions 2024 | Latest Accenture Coding Question
HTML-код
- Опубликовано: 23 окт 2024
- [Slot 2 - 9th August 2024] Accenture Todays Coding Questions 2024 | Latest Accenture Coding Question
***************************************************************************************
✅✅Join Our Telegram Group for Accenture 2025 Batch Discussion : t.me/placement...
✅✅Important IT Interview Subject Notes: topmate.io/cod...
✅✅Book Mock Interview : topmate.io/cod...
****************************************************************************************
More Videos :
Accenture Ultimate Preparation Series 2025 Playlist : • Accenture Ultimate Apt...
Most Important Java Interview Questions For TCS Preparation | Core Java Questions | One Shot Video : • Most Important Java In...
TCS Prime Interview Experience 2024 Playlist: • TCS Prime Interview Ex...
TCS Digital Interview Experience Playlist : • TCS Ninja Topper / Dig...
TCS Ninja Interview Experience Playlist : • TCS Ninja Interview Ex...
Accenture Coding Questions :
• Accenture Coding Quest...
Accenture Previous Interview Experience : • Accenture Interview Ex...
Cognizant Genc Interview Experience Playlist : • Cognizant genc intervi...
How To Explain Project In Interview For Freshers | Project Explanation in interview in detail : • How To Explain Project...
Linear Search Algorithm : • Linear Search Algorith...
Binary search Algorithm : • Binary Search Algorith...
features of oops | 4 pillers of oops: • 4 pillers of Object Or...
Access Modifiers : • Access Modifiers In OO...
Constructors and destructors : • Constructors And Destr...
Important oops interview questions : • Important OOPS intervi...
Important java interview questions : • Important Java intervi...
important python interview questions : • Important python Inter...
important machine learning interview questions : • Important Machine Lear...
important dbms questions : • Important DBMS intervi...
Tags :
code bashers
accenture assessment test 2024
accenture coding questions 2024
accenture coding questions playlist
accenture coding questions and answers
accenture coding questions latest 2024
accenture coding questions in java
accenture coding questions for pada
accenture preparation 2025
accenture preparation strategy
accenture preparation 2025 batch
accenture preparation in one video
how to crack accenture online test
how to crack accenture online test 2024
how to crack accenture aptitude test
how to crack accenture campus placement
how to crack accenture assessment test 2024
accenture 2025 hiring
accenture 2025 on campus
accenture 2025 hiring on campus
accenture previous year coding questions
accenture previous year aptitude questions
accenture previous year question paper coding questions
accenture previous question papers
accenture previous year pseudocode questions
accenture previous year interview questions
#accenture #accenturehiring #accenturejobs #accenturerecruitment
✅✅Join Our Telegram Group for Accenture 2025 Batch Discussion : t.me/placement_batch_2025
✅✅Important IT Interview Subject Notes: topmate.io/code_bashers/1026390
sir all these questions are of Easy level...Hope Accenture will ask this type of easy questions for 2025 Batch 😅
When they will start hiring for 2025 batch?
@@ammankhan3370 on campus hiring is started , exam date will be announced soon, not sure about off campus hiring
2nd question can be done in O(1) time
Simply do,
n = N/2
n will be equal to number of even terms till N
then to find sum of even numbers, do n*(n+1)... this will be the answer
is there repeating question is coming or not??
when will off-campus start for the 2025 batch ?? and the off-campus test should be given from Home ??
+1
in my clg its starting from 12 sept, it would be held in clg lab not from home.
Take a length of s2 string as cost , if s1 letter eqauls to s2 cost-- , in the end return cost
Is coding round was Elimination round??
Yrss
can anyone provide me the code for 1st question in java hashmaps???
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter String-1: ");
String str1 = input.next();
System.out.print("Enter String-2: ");
String str2 = input.next();
System.out.println(cost(str1,str2));
}
public static int cost(String str1, String str2){
HashMap hmp = new HashMap();
int count =0;
for(int i =0; i< str2.length(); i++){
char ch2 = str2.charAt(i);
if(hmp.containsKey(ch2)){
hmp.put(ch2,hmp.get(ch2)+1);
count++;
}
else{
hmp.put(ch2,1);
count++;
}
}
System.out.println(hmp);
for(int i =0; i< str1.length();i++){
char ch1 = str1.charAt(i);
if(hmp.containsKey(ch1)){
count--;
}
}
return count;
}
please provide code in Java
Hi I got message in whatsapp that I completed my assessment but no update for clearing
what is that means
Coding round khula tha ?
Can you provided the link of this codechef questions olease 😢😢😢😢
I m.just using Ide of Codechef
Question is from Accenture only.
Question is not from codechef , just ide i m using.
Use set instead set)s1) - set,(s2) len(s) answer
what?
Accenture exam mai teachers accenture se aate hain ? Anyone any idea?
maybe possible
yes
More optimized - C++20
#include
using namespace std;
int string_transformation(string s1, string s2) {
unordered_map ump;
int count = 0;
for (char c : s2) {
ump[c]++;
}
for (char c : s1) {
if (ump[c] > 0) {
ump[c]--;
}
}
for (auto &ele : ump) {
count += ele.second;
}
return count;
}
int main() {
// your code goes here
string s1, s2;
cin >> s1 >> s2;
cout
public class Array {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
evenNumber(a);
}
static int evenNumber(int a) {
for (int i = 1; i
hey can you provide me the solution for 1st question in java in hashmaps
yes there is one small error that you have returned the sum variable inside the if condition then the current sum will return from there which is 2 for 1st iteration so, just replace the position of sum from if condition to outside of the loop to get the whole sums of even number😅
you must also define the sum variable just before the loop otherwise the local variable error will arise
import java.util.*;
import java.lang.*;
import java.io.*;
class Codechef
{
public static int c(int n){
if(n == 0 || n == 1){
return 0;
}
int sum = 0;
for(int i=0;i
@@mayurbhelma4501 u can get any code online in microsoft copilot it is like chat gpt and gives more accurate answers than chat gpt ,u can run in your compiler as well as to check.
in the 2nd test case of first question answer should be 3 instead of 4 i guess as there was no cost of removal
4 letter were diff , check again
@@CodeBashers Yes my bad i didnt saw that extra B
can anyone provide me the code for 1st question in java hashmaps???
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter String-1: ");
String str1 = input.next();
System.out.print("Enter String-2: ");
String str2 = input.next();
System.out.println(cost(str1,str2));
}
public static int cost(String str1, String str2){
HashMap hmp = new HashMap();
int count =0;
for(int i =0; i< str2.length(); i++){
char ch2 = str2.charAt(i);
if(hmp.containsKey(ch2)){
hmp.put(ch2,hmp.get(ch2)+1);
count++;
}
else{
hmp.put(ch2,1);
count++;
}
}
System.out.println(hmp);
for(int i =0; i< str1.length();i++){
char ch1 = str1.charAt(i);
if(hmp.containsKey(ch1)){
count--;
}
}
return count;
}