Accenture logo AC
Verified Company Vault 30d Active

Accenture DSA Interview Questions

142 curated coding interview questions directly asked in Accenture technical rounds, sorted by frequency with recency and difficulty diagnostics.

142 Total Questions
64 (45%) Easy Problems
67 (47%) Medium Problems
11 (8%) Hard Problems
🔥 Most Tested Topics:
Core DSA (50)Arrays (48)Strings (27)Trees (9)Binary Search (8)
📂 Sourced Datasets:
Last 30 daysLast 3 monthsLast 6 monthsAll questionsOlder than 6 months
Showing 142 of 142 displayed
IDProblemDifficultyTopicPatternAcceptanceFrequencyRecency
121Best Time to Buy and Sell StockEasyCore DSAImplementation / Reasoning56.8%100.0%30d
560Subarray Sum Equals KMediumArraysSorting / Prefix / Scan47.3%100.0%3m
3432Count Partitions with Even Sum DifferenceEasyArrays; Dynamic ProgrammingSorting / Prefix / Scan; State Transition85.3%100.0%6m
1Two SumEasyArraysSorting / Prefix / Scan; Two Pointers57.5%87.5%6m
70Climbing StairsEasyDynamic ProgrammingState Transition54.1%87.5%6m
7Reverse IntegerMediumCore DSAImplementation / Reasoning31.9%87.5%all
2859Sum of Values at Indices With K Set BitsEasyArraysSorting / Prefix / Scan86.1%87.5%all
53Maximum SubarrayMediumArraysSorting / Prefix / Scan53.3%87.5%all
3000Maximum Area of Longest Diagonal RectangleEasyArraysSorting / Prefix / Scan45.9%87.5%all
3146Permutation Difference between Two StringsEasyStrings; BacktrackingHashing / Sliding Window; Backtracking87.8%87.5%all
3348Smallest Divisible Digit Product IIHardArraysSorting / Prefix / Scan14.6%87.5%all
3779Minimum Number of Operations to Have Distinct ElementsMediumArraysSorting / Prefix / Scan42.4%75.0%6m
875Koko Eating BananasMediumBinary SearchBinary Search50.0%75.0%6m
153SumMediumArraysSorting / Prefix / Scan39.1%75.0%6m
56Merge IntervalsMediumArraysSorting / Prefix / Scan51.8%75.0%6m
3Longest Substring Without Repeating CharactersMediumStrings; TreesHashing / Sliding Window; DFS / BFS; Sliding Window39.1%75.0%all
5Longest Palindromic SubstringMediumStrings; TreesHashing / Sliding Window; DFS / BFS37.8%75.0%all
9Palindrome NumberEasyStringsHashing / Sliding Window60.6%75.0%all
2960Count Tested Devices After Test OperationsEasyCore DSAImplementation / Reasoning78.9%75.0%all
2099Find Subsequence of Length K With the Largest SumEasyArraysSorting / Prefix / Scan57.4%75.0%all
189Rotate ArrayMediumArraysSorting / Prefix / Scan44.9%75.0%all
202Happy NumberEasyCore DSAImplementation / Reasoning59.7%75.0%all
3028Ant on the BoundaryEasyCore DSAImplementation / Reasoning74.4%75.0%all
740Delete and EarnMediumCore DSAImplementation / Reasoning57.2%75.0%all
2855Minimum Right Shifts to Sort the ArrayEasyArraysSorting / Prefix / Scan57.4%75.0%all
169Majority ElementEasyCore DSAImplementation / Reasoning66.3%75.0%all
214Shortest PalindromeHardStringsHashing / Sliding Window42.5%75.0%all
17Letter Combinations of a Phone NumberMediumStrings; BacktrackingHashing / Sliding Window; Backtracking66.1%75.0%all
3345Smallest Divisible Digit Product IEasyArraysSorting / Prefix / Scan64.4%75.0%all
2Add Two NumbersMediumCore DSAImplementation / Reasoning48.5%62.5%all
11Container With Most WaterMediumCore DSATwo Pointers60.0%62.5%all
13Roman to IntegerEasyStringsHashing / Sliding Window66.6%62.5%all
14Longest Common PrefixEasyCore DSAImplementation / Reasoning47.6%62.5%all
20Valid ParenthesesEasyStringsHashing / Sliding Window44.2%62.5%all
4Median of Two Sorted ArraysHardArrays; HeapSorting / Prefix / Scan; Priority Queue46.6%62.5%all
26Remove Duplicates from Sorted ArrayEasyArraysSorting / Prefix / Scan; Two Pointers62.8%62.5%all
48Rotate ImageMediumArraysSorting / Prefix / Scan80.1%62.5%all
88Merge Sorted ArrayEasyArraysSorting / Prefix / Scan54.9%62.5%all
151Reverse Words in a StringMediumStringsHashing / Sliding Window56.4%62.5%all
162Find Peak ElementMediumBinary SearchBinary Search47.0%62.5%all
179Largest NumberMediumCore DSAImplementation / Reasoning43.1%62.5%all
204Count PrimesMediumCore DSAImplementation / Reasoning36.1%62.5%all
217Contains DuplicateEasyArraysSorting / Prefix / Scan64.4%62.5%all
242Valid AnagramEasyStringsHashing / Sliding Window68.1%62.5%all
279Perfect SquaresMediumCore DSAImplementation / Reasoning56.5%62.5%all
319Bulb SwitcherMediumCore DSAImplementation / Reasoning55.9%62.5%all
509Fibonacci NumberEasyCore DSAImplementation / Reasoning74.1%62.5%all
198House RobberMediumDynamic ProgrammingState Transition53.2%62.5%all
455Assign CookiesEasyCore DSAImplementation / Reasoning55.0%62.5%all
66Plus OneEasyCore DSAImplementation / Reasoning50.0%62.5%all
485Max Consecutive OnesEasyCore DSAImplementation / Reasoning65.2%62.5%all
400Nth DigitMediumCore DSAImplementation / Reasoning38.2%62.5%all
1518Water BottlesEasyCore DSAImplementation / Reasoning72.6%62.5%all
962Maximum Width RampMediumArraysSorting / Prefix / Scan55.9%62.5%all
876Middle of the Linked ListEasyLinked ListTwo Pointers81.8%62.5%all
283Move ZeroesEasyCore DSATwo Pointers63.8%62.5%all
200Number of IslandsMediumGraphsBFS / DFS / Topological Sort64.4%62.5%all
19Remove Nth Node From End of ListMediumTrees; Linked ListDFS / BFS; Two Pointers51.6%62.5%all
349Intersection of Two ArraysEasyArraysSorting / Prefix / Scan77.8%62.5%all
118Pascal's TriangleEasyCore DSAImplementation / Reasoning78.9%50.0%all
176Second Highest SalaryMediumCore DSAImplementation / Reasoning47.0%50.0%all
343Integer BreakMediumCore DSAImplementation / Reasoning62.3%50.0%all
496Next Greater Element IEasyStack / QueueMonotonic Stack / Simulation76.1%50.0%all
322Coin ChangeMediumDynamic ProgrammingState Transition48.4%50.0%all
215Kth Largest Element in an ArrayMediumArrays; HeapSorting / Prefix / Scan; Priority Queue68.9%50.0%all
1823Find the Winner of the Circular GameMediumCore DSAImplementation / Reasoning82.2%50.0%all
2938Separate Black and White BallsMediumCore DSAImplementation / Reasoning63.9%50.0%all
197Rising TemperatureEasyCore DSAImplementation / Reasoning51.3%50.0%all
219Contains Duplicate IIEasyArraysSorting / Prefix / Scan51.3%50.0%all
344Reverse StringEasyStringsHashing / Sliding Window80.8%50.0%all
1661Average Time of Process per MachineEasyCore DSAImplementation / Reasoning66.8%50.0%all
451Sort Characters By FrequencyMediumArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window75.3%50.0%all
181Employees Earning More Than Their ManagersEasyCore DSAImplementation / Reasoning73.2%50.0%all
34Find First and Last Position of Element in Sorted ArrayMediumArraysSorting / Prefix / Scan48.9%37.5%all
54Spiral MatrixMediumArraysSorting / Prefix / Scan56.8%37.5%all
72Edit DistanceMediumDynamic ProgrammingState Transition60.6%37.5%all
104Maximum Depth of Binary TreeEasyArrays; TreesSorting / Prefix / Scan; DFS / BFS78.2%37.5%all
125Valid PalindromeEasyStringsHashing / Sliding Window53.3%37.5%all
135CandyHardCore DSAImplementation / Reasoning48.5%37.5%all
238Product of Array Except SelfMediumArraysSorting / Prefix / Scan68.9%37.5%all
300Longest Increasing SubsequenceMediumDynamic ProgrammingState Transition59.4%37.5%all
507Perfect NumberEasyCore DSAImplementation / Reasoning48.9%37.5%all
1636Sort Array by Increasing FrequencyEasyArraysSorting / Prefix / Scan80.8%37.5%all
206Reverse Linked ListEasyLinked ListTwo Pointers80.6%37.5%all
852Peak Index in a Mountain ArrayMediumArrays; Binary SearchSorting / Prefix / Scan; Binary Search66.8%37.5%all
12Integer to RomanMediumStringsHashing / Sliding Window71.0%37.5%all
345Reverse Vowels of a StringEasyStringsHashing / Sliding Window61.3%37.5%all
739Daily TemperaturesMediumStack / QueueMonotonic Stack / Simulation68.7%37.5%all
62Unique PathsMediumCore DSAImplementation / Reasoning66.8%37.5%all
54201 MatrixMediumArraysSorting / Prefix / Scan53.9%37.5%all
185Department Top Three SalariesHardCore DSAImplementation / Reasoning60.5%37.5%all
1512Number of Good PairsEasyCore DSAImplementation / Reasoning89.8%37.5%all
1742Maximum Number of Balls in a BoxEasyArraysSorting / Prefix / Scan74.9%37.5%all
2684Maximum Number of Moves in a GridMediumArraysSorting / Prefix / Scan58.7%37.5%all
389Find the DifferenceEasyCore DSAImplementation / Reasoning60.3%37.5%all
8String to Integer (atoi)MediumStringsHashing / Sliding Window21.0%37.5%all
35Search Insert PositionEasyBinary SearchBinary Search51.3%37.5%all
438Find All Anagrams in a StringMediumStringsHashing / Sliding Window53.8%37.5%all
1312Minimum Insertion Steps to Make a String PalindromeHardArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window73.9%37.5%all
136Single NumberEasyCore DSAImplementation / Reasoning77.7%37.5%all
387First Unique Character in a StringEasyStringsHashing / Sliding Window65.5%37.5%all
10Regular Expression MatchingHardCore DSAImplementation / Reasoning31.0%37.5%all
22Generate ParenthesesMediumStringsHashing / Sliding Window78.7%37.5%all
131Palindrome PartitioningMediumStrings; Dynamic ProgrammingHashing / Sliding Window; State Transition74.1%37.5%all
2493Divide Nodes Into the Maximum Number of GroupsHardArrays; TreesSorting / Prefix / Scan; DFS / BFS66.9%37.5%all
1143Longest Common SubsequenceMediumCore DSAImplementation / Reasoning59.2%37.5%all
177Nth Highest SalaryMediumCore DSAImplementation / Reasoning39.2%37.5%all
190Reverse BitsEasyCore DSAImplementation / Reasoning68.4%37.5%all
108Convert Sorted Array to Binary Search TreeEasyArrays; Trees; Binary SearchSorting / Prefix / Scan; DFS / BFS; Binary Search75.6%37.5%all
409Longest PalindromeEasyStringsHashing / Sliding Window56.0%37.5%all
141Linked List CycleEasyLinked ListTwo Pointers54.3%37.5%all
1903Largest Odd Number in StringEasyStringsHashing / Sliding Window67.4%37.5%all
2215Find the Difference of Two ArraysEasyArraysSorting / Prefix / Scan81.4%37.5%all
103Binary Tree Zigzag Level Order TraversalMediumTreesDFS / BFS63.7%37.5%all
516Longest Palindromic SubsequenceMediumCore DSAImplementation / Reasoning65.4%37.5%all
541Reverse String IIEasyStringsHashing / Sliding Window53.8%37.5%all
796Rotate StringEasyArrays; StringsSorting / Prefix / Scan; Hashing / Sliding Window66.6%37.5%all
122Best Time to Buy and Sell Stock IIMediumCore DSAImplementation / Reasoning71.1%37.5%all
402Remove K DigitsMediumCore DSAImplementation / Reasoning36.9%37.5%all
42Trapping Rain WaterHardCore DSATwo Pointers67.4%37.5%all
2235Add Two IntegersEasyCore DSAImplementation / Reasoning88.0%37.5%all
184SumMediumArraysSorting / Prefix / Scan40.6%37.5%all
525Contiguous ArrayMediumArraysSorting / Prefix / Scan51.3%37.5%all
32Longest Valid ParenthesesHardStringsHashing / Sliding Window38.8%37.5%all
907Sum of Subarray MinimumsMediumArraysSorting / Prefix / Scan38.6%37.5%all
912Sort an ArrayMediumArraysSorting / Prefix / Scan55.9%37.5%all
79Word SearchMediumStrings; Binary SearchHashing / Sliding Window; Binary Search47.4%37.5%all
50Pow(x, n)MediumCore DSAImplementation / Reasoning38.7%37.5%all
81Search in Rotated Sorted Array IIMediumArrays; Binary SearchSorting / Prefix / Scan; Binary Search40.1%37.5%all
178Rank ScoresMediumCore DSAImplementation / Reasoning67.7%37.5%all
396Rotate FunctionMediumArraysSorting / Prefix / Scan54.1%37.5%all
724Find Pivot IndexEasyCore DSAImplementation / Reasoning62.7%37.5%all
977Squares of a Sorted ArrayEasyArraysSorting / Prefix / Scan73.8%37.5%all
199Binary Tree Right Side ViewMediumTreesDFS / BFS70.2%37.5%all
51N-QueensHardBacktrackingBacktracking75.5%37.5%all
21Merge Two Sorted ListsEasyArrays; Linked ListSorting / Prefix / Scan; Two Pointers68.3%37.5%all
670Maximum SwapMediumArraysSorting / Prefix / Scan52.0%37.5%all
1148Article Views IEasyCore DSAImplementation / Reasoning76.6%37.5%all
31Next PermutationMediumBacktrackingBacktracking45.3%37.5%all
100Same TreeEasyTreesDFS / BFS67.1%37.5%all
33Search in Rotated Sorted ArrayMediumArrays; Binary SearchSorting / Prefix / Scan; Binary Search44.9%37.5%all
2011Final Value of Variable After Performing OperationsEasyCore DSAImplementation / Reasoning90.6%37.5%all