0 day streak

Accenture coding interview questions

Service and IT India

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +46 Solve
Best Time to Buy and Sell StockState Machine DP - Stock Problems Easy Dynamic Programming Amazon, Microsoft, Apple +38 Solve
Subarray Sum Equals KPrefix Sum Strategy Medium Arrays & Hashing Google, Microsoft, Meta +15 Solve
Palindrome NumberMath / Number Theory Easy Arrays & Hashing Bloomberg, Morgan Stanley, Qualcomm +10 Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +50 Solve
Majority ElementMoore's Voting Algorithm Easy Arrays & Hashing Bloomberg, Qualcomm, Deloitte +3 Solve
Reverse IntegerMath / Number Theory Medium Arrays & Hashing Bloomberg, Barclays, TCS +4 Solve
Kadane's Algorithm - SimpleKadane's Algorithm Medium Arrays & Hashing Microsoft, Apple, LinkedIn +29 Solve
Climbing Stairs1D DP Easy Dynamic Programming Bloomberg, Intuit, Qualcomm +8 Solve
Move ZeroesTwo Pointer Easy Arrays & Hashing Meta, Nvidia, Bloomberg +11 Solve
Container With Most WaterTwo Pointer Medium Arrays & Hashing Google, Microsoft, Apple +31 Solve
Rotate ArrayDouble Reversal Trick Medium Arrays & Hashing Apple, Bloomberg, Samsung +8 Solve
Koko Eating BananasBinary Search on Answer Space Medium Binary Search Amazon, Netflix, DoorDash +12 Solve
3SumTwo Sum Medium Arrays & Hashing Google, Microsoft, Meta +31 Solve
Remove Duplicates from Sorted ArrayTwo Pointer Easy Arrays & Hashing Microsoft, Bloomberg, Cisco +8 Solve
Letter Combinations of a Phone NumberChoice per Position Medium Recursion & Backtracking Amazon, Meta, Uber +9 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +41 Solve
Intersection of Two ArraysTwo Pointer Easy Arrays & Hashing Meta, Capgemini Solve
Median of Two Sorted ArraysBinary Search on Partition Hard Binary Search Google, Amazon, Microsoft +17 Solve
Merge IntervalsBasics Medium Intervals Google, Amazon, Microsoft +45 Solve
Max Consecutive OnesSliding Window · Variable Easy Arrays & Hashing Deloitte, Wipro, Cognizant Solve
Contains Duplicate IISliding Window · Fixed Easy Arrays & Hashing Netflix, Airbnb, Palantir Solve
Remove Nth Node From End of ListFront Back Pointer Medium Linked List Apple, Morgan Stanley, Qualcomm +4 Solve
4SumTwo Pointer Medium Arrays & Hashing Nvidia, Rubrik, ServiceNow +2 Solve
Next PermutationRight to Left Traversal Medium Arrays & Hashing Google, Amazon, Meta +15 Solve
Longest Palindromic SubstringStrings Medium Dynamic Programming Amazon, Microsoft, Apple +22 Solve
Merge Sorted ArrayTwo Pointer Easy Arrays & Hashing Meta, Apple, Nvidia +12 Solve
Pascal's Triangle1D DP Easy Dynamic Programming Bloomberg, Deutsche Bank, Wipro Solve
Find Peak ElementUnique 1-D Binary Search Medium Binary Search Meta, Netflix, Samsung +4 Solve
Happy NumberSlow Fast Pointers Easy Linked List Airbnb, Snowflake, Tesla +4 Solve
Count PrimesMath / Number Theory Medium Arrays & Hashing Databricks, American Express, Intel +2 Solve
Contains DuplicateHash Set Lookup Easy Arrays & Hashing Netflix, Airbnb, Spotify +3 Solve
Valid AnagramHashing Easy Arrays & Hashing Netflix, Databricks, Bloomberg +13 Solve
Fibonacci Number1D DP Easy Dynamic Programming Spotify, Intel, Deloitte +7 Solve
Kth Largest Element in an ArrayTop K / Kth Largest / Smallest Medium Heaps Meta, Apple, Netflix +14 Solve
Middle of the Linked ListSlow Fast Pointers Easy Linked List Apple, Qualcomm, VMware by Broadcom +3 Solve
Search Insert PositionBisect Easy Binary Search Solve
Sort Characters By FrequencyTop K / Kth Largest / Smallest Medium Heaps Citi, Wipro, HCLTech +1 Solve
Trapping Rain WaterTwo Pointer Hard Arrays & Hashing Google, Amazon, Microsoft +38 Solve
String CompressionTwo Pointer Medium Arrays & Hashing Microsoft, Stripe, Nvidia +10 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +49 Solve
Roman to IntegerRight to Left Traversal Easy Arrays & Hashing Bloomberg, Oracle, JPMorgan Chase +8 Solve
Longest Common PrefixString Basics Easy Arrays & Hashing Bloomberg, Adobe, Visa +12 Solve
Reverse Words in a StringDouble Reversal Trick Medium Arrays & Hashing Microsoft, Nvidia, Barclays +8 Solve
Single NumberMissing / Repeated Numbers Easy Bit Manipulation Airbnb, Bloomberg, Palantir +6 Solve
Add Two NumbersDummy Node Pattern Medium Linked List Amazon, Microsoft, Meta +12 Solve
Valid ParenthesesStack Basics Easy Stack Google, Microsoft, Meta +39 Solve
Product of Array Except SelfRight to Left Traversal Medium Arrays & Hashing Microsoft, Meta, Apple +13 Solve

Questions people ask

What coding questions does Accenture ask most?

Two Sum, Best Time to Buy and Sell Stock, Subarray Sum Equals K, Palindrome Number, Longest Substring Without Repeating Characters, Majority Element, Reverse Integer, Kadane's Algorithm - Simple.

Which topics come up in Accenture coding rounds?

arrays, strings, math, two pointers, hashing, dynamic programming.

How hard are Accenture coding questions?

Of the reported questions, 22 are easy, 24 medium and 2 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.