Crack Accenture : Must-Know Array Coding Solutions (Part 1)
ฝัง
- เผยแพร่เมื่อ 14 ต.ค. 2024
- Prepare for your Accenture interview with this comprehensive guide to array coding questions. In Part 1, we cover essential array problems along with their step-by-step solutions to help you master the technical rounds.
GitHub Repo: github.com/yas...
What You'll Learn:
Common array coding questions in Accenture interviews
Detailed solutions and explanations for each problem
Tips for approaching array problems effectively
Strategies for optimizing your code
Key Topics Covered:
1. Understanding Array Problems:
Types of array questions asked in Accenture interviews
Common patterns and techniques for solving array problems
2. Detailed Solutions:
Step-by-step explanations of each solution
Code optimization tips
Common mistakes to avoid
3. Interview Preparation Tips:
How to practice array problems effectively
Important concepts to focus on
Time management strategies for coding interviews
Prime Coding LinkedIn: / primecoding
Prime Coding Instagram: / primecoding
Subscribe, like the channel and leave a comment!
Interview preparation playlists:
Interview Preparation: • Interview Preparation
TCS: • TCS Interview Playlist
Accenture: • Accenture
Wipro: • Wipro
Tech Mahindra: • Tech Mahindra
🖥️ Prime Coding Community (Notes/Hiring Updates/Ask Doubt):
Join telegram: t.me/+z0_jpru_...
1:1 Mentorship Program: www.primecodin...
Join us on social media:
📷 All links: linktr.ee/adit...
📧 For more info, contact us at - contactprimecoding@gmail.com
Don't forget to like, comment, and subscribe for more updates and preparation tips!
#accenture #arraycoding #codingquestions #interviewprep #primecoding #codinginterview #arraysolutions #jobprep #technicalinterview #careerprep
The topics covered in this video are(tags)
TCS hiring
Off campus drive
new off campus opportunities
off campus jobs 2021
tcs hiring
software hiring
data engineer intern
hiring for interns 2021
jobs freshers
fresher hiring
hiring challenges 2021
new job opportunities 2021
freshers hiring
Hiring freshers
STEP internship
product company
full time job
tcs nqt score
off campus placement
off campus internship
off campus recruitment
off campus hiring
accenture 20 july 2023 questions
accenture 20 july question solution
accenture 2023 exam paper
accenture questions paper
accenture 2023 paper solution
off campus drive 2021
off campus updates
off campus 2021 batch
off campus interview
off campus jobs for freshers
off campus jobs updates
off campus jobs latest
off campus recruitment 2021
latest off campus drive 2021
Off campus drive 2021
jobs 2021 latest
internship opportunities 2021
jobs for bca mca
jobs for bca students 2021
jobs for mca students 2021
new off campus opportunities
off campus jobs 2021
amazon hiring freshers
amazon internship 2021
amazon hiring interns
data science internship opportunity 2021
hiring for interns 2021
hiring challenges 2021
new job opportunities 2021
freshers hiring
Hiring freshers
STEP internship
product company
full time job
job opportunities 2021
summer internship
Good income work from home
private job vacancy 2021
new job vacancies 2021
private job notification 2021
high paying work from home jobs
work from home jobs no experience
work from home jobs 2021
how to find private job easily
Latest Job Updates
private company jobs
how to find private jobs
how to apply private compnay jobs
how to apply jobs direct in comapny
how to apply job in company at home
Work from Home Customer support Job for all Freshers
mitsogo previous year questions
mitsogo aptitude round
mitsogo previous year aptitude questions
mitsogo aptitude questions
Hashtags:
#mitsogopreviousyearquestions
#mitsogoaptituderound
#mitsogopreviousyearaptitudequestions
#mitsogoaptitudequestions
#infosysterminate
#infosysalary
#salaryofinfosys
#mindtreehiring
#mindtreehiring2021
#offcampusjobs
#offcampushiring
#workfromhome
#2021jobs
#hiring2021
#offcampushiring2021
#offcampushiring2022
#offca
#2022jobs
#btechjobs
#onlinelearning
#ciscojobs
#tcsnqtscore
#whattodowithtcsnqtscore
#cisco
#freshersjobs
#offcampushiring2022
#offcampusjobs2022
#offcampusdrivefor2022batch
#parttimejob
#parttimejobsforstudents
#capgeminitechnicalmcq
#tcsnqtinterview2024
#tcsnqt2024result
#tcsnqt2024resultout
#parttimework
tcs nqt 2024
tcs nqt 2024 batch
tcs nqt 2024 free
tcs off campus 2024
tcs off campus hiring for 2024 batch
tcs free hiring 2024 batch
tcs 26th april questions
tcs 29th april questions
tcs free hiring
tcs hiring 2024 batch
tcs hiring 2024
tcs off campus drive for 2024 batch
tcs recruitment 2024
tcs nqt
Hello Prime Coders,
I hope you like the video and share it with your friends.
Many people are facing the problem and understanding the questions wrongly, it is very simple question if you have doubt then see the website reference:
codewindow.in/accenture-coding-question-array-permutation-codewindow/
Join the telegram group: t.me/+Di5pNs9VmuhkMjM1
Thanks.
Your function intersection is designed to find the intersection of two sorted arrays, but it seems you're using it with unsorted arrays. To make it work with unsorted arrays, you need to sort both arrays first.
def intersection(arr1, arr2):
arr1.sort()
arr2.sort()
i, j = 0, 0
ans = []
while i < len(arr1) and j < len(arr2):
if arr1[i] < arr2[j]:
i += 1
elif arr1[i] > arr2[j]:
j += 1
else:
ans.append(arr1[i])
i += 1
j += 1
return ans
arr1 = [1, 2, 3, 1]
arr2 = [2, 1, 1, 3]
print(intersection(arr1, arr2))
@PrimeCoding19
//second largest number
#include
using namespace std;
int second_largest(vectorarr){
sort(arr.begin(),arr.end());
for(int i=arr.size();i>=0;i--){
return arr[i-2];
}
}
int main(){
vectorarr={3,6,4,7,9,2};
int ans=second_largest(arr);
cout
Another approach for removing duplicates in the array..
iterate the array , if the ith element and the i-1th element of the array is equal , do nothing and skip the iteration(i.e., continue;) else add the element in the resultant array...finally return the resultant array...
This program consist of no imbuild functions..If java, you will be using list for resultant array...thats it...
I came around with this question in Bahwan Cybertek company in on campus placement ... This question was asked to me when i was sitting for my 2nd round known to be the code jam round.
bro consecutive numbers question lo vaadu 1 to 6 no echadu.i mean starting from 1.so manam formuulae use chesesam.if ala kakundaa from 31 to 36 echi 35 miss chesthey aa code work avvadhu.
import java.util.*;
public class Main
{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("Enter the size of the array");
int n=sc.nextInt();
System.out.println("enter the elements of the array");
int a[]=new int[n];
int i;
for(i=0;i
Hello Guys
In the intersection between two array python code if i get input like two array which is
#Find the intersection of two array
#Find the intersection of two array
i , j = 0, 0
arr1 = [4,6,7,1]
arr2 = [2,5,9,1]
ans = []
while i < len(arr1) and j < len(arr2):
if arr1[i] < arr2[j]:
i += 1
elif arr2[j] < arr1[i]:
j = j+1
else:
ans.append(arr1[i])
i = i+1
j = j+1
print(ans)
then output given is [] # which is blank array
accepected output is [1]
But Lovely content !!! Keep it up
@PrimeCoding19 can u give the clarity, your code is not working for all the cases, is there any another way to get the answer?
@@-AKHILREDDYCHITYALA The array needs to be sorted...right? Else double pointer won't work
@allovermedia5872
#Occurence of each number
a=[1,2,2,3,3,1,5,4]
s={}
for i in a:
if i in s:
s[i]+=1
else:
s[i]=1
print(s)
This is highly demanded video. Thanks for helping us. WE WILL CRACK!
Welcome, stay tuned for more videos
Missing Number Code in Python:
li=list(map(int,input().split()))
for i in range(0,len(li)-1):
if(li[i]+1==li[i+1]):
pass
else:
print(li[i]+1)
To find second largest element:
a=[1,2,3,4,5,8]
l=max(set(a))
mini=-9999
for v in a:
if miniO(1), set uses constant time to find element?
Great!
l1=list(map(int,input().split()))
l1.sort()
print(l1[-2])
can we do this??
Thank you for making this series, this will help me crack the role. Keep Making!
Please upload this type of solution videos on a daily basis.
Stay tuned, part 2 will be uploaded today!
@@PrimeCoding19 Keep Up the Good Work 👍
Brother this video very helpful.
By following your playlist for Accenture can we creack the coding round??
Definitely.. yes solve all coding question problem and see basics questions of dp!
hope u upload everything before company appear at our college
Definitely yes.
def intersection(arr1, arr2):
set1 = set(arr1)
set2 = set(arr2)
return list(set1 & set2)
arr1 = [1, 2, 3, 4, 5]
arr2 = [4, 5, 6, 7, 8]
result = intersection(arr1, arr2)
print(result)
It's very easy
Thank you
Please avoid using set inbuilt functions!
In interviews they won't let you use it because using sets increases time complexity.
And yes this is the article you can use in OA but not in interview!
@@PrimeCoding19 ok sir...thank you
public class Main
{
public static void main(String[] args) {
String str = "hello";
String rev = "";
for(int i=0;i
#countoccurance
def count(li):
dec={}
for i in li:
if i in dec:
dec[i]+=1
else:
dec[i]=1
return dec
li=list(map(int,input().split()))
print(count(li))
Brother without using functions we can do the programming in c language.
Thanks Aditya for uploading the solution. Please release all solutions.
Welcome, Keep learning & Stay tune
Good Work Bro... please upload this series of important coding questions especially for Accenture
Already uploaded check the playlist.
th-cam.com/play/PLravv7D3PJJb7vQeKGKGi9H4Pmv2RQVN2.html&si=7mni3y8IuXKR5xoX
I have doubt….will Accenture ask quant if they ask then plz tell us topics?? Plz reply coz having Accenture assessment exam this week
Wow, more is expected.Thanks
Stay tuned
Bro can we use python?@@PrimeCoding19
Bro def function use krna mandatory hai ya bs output correct hona chaiya
@@palnitin25 output Correct hona chahiye,
Code clarity ke liye habit bana Lo.
//count the occurance of each element
#include
using namespace std;
int main() {
vector nums = {1, 2, 2, 3, 4, 4, 5};
map mp;
for(int i = 0; i < nums.size(); i++) {
mp[nums[i]]++;
}
map::iterator it;
for(it = mp.begin(); it != mp.end(); it++) {
cout first
Is this for the ase role?
Can we use Linkedhashset for removing duplicates from an array?
Yes
Can I use methods in online coding round to reverse a array like collections.reverse(arr) basically this is in java
Yes you need to import first
/Reverse String
#include
using namespace std;
void ReverseString(char ch[],int size){
int start=0;
int end=size-1;
while(start
Bro can we use list function to convert string into list and use reverse function and print using for and end=""
Yes
Please make videos on daily u only there explaining in python language
sir what are important topic for coding test
Overall, I have included many patterns (topics) in this sheet so try to solve each and every question!
Sir can I solve Accenture coding assessment exam in javascript..... ?because in their company page they only mentioned c,c++,java, python languages....
I do not recommend you to use JavaScript.
@@PrimeCoding19 thanks for giving answer for question sir.....
sir I know only front end technologies like react,js,CSS,html....and started learning back-end technologies as well as DB .....so what types of companies exams I do .....
Is there another exam or ways for MERN STACK developers to join this companies
To reverse a string
def rev(x):
return x[::-1]
print(rev("varshith"))
without using slicing.
def duplicates(n):
return list(dict.fromkeys(n))
print(duplicates([1, 2, 2, 3, 4, 4]))
In Python, dictionaries cannot have duplicate keys, so this automatically removes any duplicate elements from the list.
we should not use pre-defined functions your code consists of pre-defined function dict.fromkeys()
@koppoluhanumathsrichakrava7110
s="hello"
print(s[::-1])
o/p:"olleh"
waiting for part-2
Yes stay tuned!
Where is the part 2
Thank you brother ❤
Most welcome, Stay tuned
sir please provide the list of important coding questions for Accenture 2025
Check on Prime Coding Channel I have uploaded the video of Accenture Coding Sheet
Thanks for sharing solution ❤
Keep learning.
def reverse_string(s):
rev=s[::-1]
print(rev)
s="Hello"
print(reverse_string(s))
Solve without using slicing!
agar itna kiya tooh sufficient hain na ??
Complete this, then you can focus on other questions, this is your best bet
For the 1st Question the logic to reverse a string is wrong, it should be iterate from s.length-1 to greater than 0 i-- in for loop
your code prints exactly same string not the reversed String
Please dry run the solution or check the github link. Try running the program and see the results. I'm sure it's right.
Please focus on your basics.
Thank you so much ❤😊
Welcome, keep learning.
What is approximately date for Online assignment ? For 2025
1 week of aug
@@PrimeCoding19 bhaiya ? Mera 12th (2019) me or Clg ( 2021-25 ) , I’m eligible or not for Accenture?
Telegram link is fake
t.me/+Di5pNs9VmuhkMjM1
@@PrimeCoding19 it is not opening
@@rajgaming7636 try to paste the link in chrome.
@@PrimeCoding19 chrome, edge, brave, safari, tried all but not opening 😞
Str=str(::-1)
code solutions in C & C#
Where is the application link sir
They started recruitment in campus but for 2024 batch watch my accenture hiring video on channel.
give the github link for codes
check description
bro these array series questions are enough to on campus coding road
Yes, the Accenture Sheet and TCS Coding Videos are enough and you are done.
Add DBMS and SQL 1 shot questions and videos are available, do it and crack the interview.
helpful
Keep learning.
Telegram link is not working
www.primecoding.in
Click Contact Us, then click on the Telegram icon in the bottom right corner.
thanks bro
bhaiya thankyou for your efforts par aap intersection wala question ache sey nhi samjha paaye
Literally mai comment kar diya tha ..then deleted my comment ...ki plz mention time complexity and space complexity in further vedios
Good bro 😂
I always mention TC and SC in my video!
we can reverse a string with two pointer approach l and r
put them on start and end then start swapping till l
Yes, you can use it. I taught a new perspective.
In Python this will not work because strings are immutable in Python.
What is bingo brother😂
Naya aaya kya market me ...or me is new 😂
Slang 😂 keep learning!