0 day streak

Deloitte 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
Merge k Sorted ListsMerge K Sorted Hard Heaps Google, Amazon, Microsoft +16 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +46 Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +50 Solve
Valid ParenthesesStack Basics Easy Stack Google, Microsoft, Meta +39 Solve
Longest Palindromic SubstringStrings Medium Dynamic Programming Amazon, Microsoft, Apple +22 Solve
Palindrome NumberMath / Number Theory Easy Arrays & Hashing Bloomberg, Morgan Stanley, Qualcomm +10 Solve
Best Time to Buy and Sell StockState Machine DP - Stock Problems Easy Dynamic Programming Amazon, Microsoft, Apple +38 Solve
Group AnagramsHashing Medium Arrays & Hashing Amazon, Microsoft, Meta +31 Solve
Longest Common PrefixString Basics Easy Arrays & Hashing Bloomberg, Adobe, Visa +12 Solve
Container With Most WaterTwo Pointer Medium Arrays & Hashing Google, Microsoft, Apple +31 Solve
Merge IntervalsBasics Medium Intervals Google, Amazon, Microsoft +45 Solve
Majority ElementMoore's Voting Algorithm Easy Arrays & Hashing Bloomberg, Qualcomm, D. E. Shaw +3 Solve
Longest Palindromic SubsequenceStrings Medium Dynamic Programming Microsoft, LinkedIn, Goldman Sachs +3 Solve
Reverse Nodes in k-GroupFront Middle Back Pointer Hard Linked List Amazon, Microsoft, Meta +5 Solve
Kadane's Algorithm - SimpleKadane's Algorithm Medium Arrays & Hashing Microsoft, Apple, LinkedIn +29 Solve
First Unique Character in a StringHashing Easy Arrays & Hashing Databricks, Nutanix, Goldman Sachs +8 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
Add BinaryRight to Left Traversal Easy Arrays & Hashing Wipro, Capgemini Solve
Valid AnagramHashing Easy Arrays & Hashing Netflix, Databricks, Bloomberg +13 Solve
Linked List CycleSlow Fast Pointers Easy Linked List Microsoft, Apple, Goldman Sachs +16 Solve
Implement Stack using QueuesStack Basics Easy Stack Goldman Sachs, Qualcomm, Paytm +1 Solve
Climbing Stairs1D DP Easy Dynamic Programming Bloomberg, Intuit, Qualcomm +8 Solve
Valid PalindromeTwo Pointer Easy Arrays & Hashing Microsoft, Apple, Bloomberg +7 Solve
Kth Largest Element in an ArrayTop K / Kth Largest / Smallest Medium Heaps Meta, Apple, Netflix +14 Solve
Roman to IntegerRight to Left Traversal Easy Arrays & Hashing Bloomberg, Oracle, JPMorgan Chase +8 Solve
Longest Consecutive SequenceHash Set Lookup Medium Arrays & Hashing Google, Bloomberg, Spotify +17 Solve
Reverse Linked ListFront Middle Back Pointer Easy Linked List Microsoft, Apple, Bloomberg +17 Solve
Jump Game IIGreedy Medium Arrays & Hashing Google, Nutanix, Atlassian +5 Solve
Fibonacci Number1D DP Easy Dynamic Programming Spotify, Intel, Barclays +7 Solve
Split Array Largest SumBinary Search on Answer Space Hard Binary Search Uber, Pinterest, D. E. Shaw +1 Solve
Rotate ArrayDouble Reversal Trick Medium Arrays & Hashing Apple, Bloomberg, Samsung +8 Solve
Remove K DigitsMonotonic Stack Medium Monotonic Stack Amazon, PhonePe, Dream11 Solve
Remove All Adjacent Duplicates In StringStack Basics Easy Stack Zomato, Paytm, Freshworks Solve
Subarray Sum Equals KPrefix Sum Strategy Medium Arrays & Hashing Google, Microsoft, Meta +15 Solve
Next PermutationRight to Left Traversal Medium Arrays & Hashing Google, Amazon, Meta +15 Solve
Asteroid CollisionStack Basics Medium Stack Amazon, Nvidia, DoorDash +10 Solve
Edit DistanceStrings Medium Dynamic Programming Google, Intuit, Cisco +6 Solve
Coin ChangeKnapsack Medium Dynamic Programming Google, Microsoft, Apple +18 Solve
Max Consecutive OnesSliding Window · Variable Easy Arrays & Hashing Wipro, Accenture, Cognizant Solve
Reverse PairsMerge Sort Like Approach Hard Arrays & Hashing Intuit, D. E. Shaw Solve
Also reported, being added to AlgoRung (5)

Minimum Time to Repair Cars · Remove K-Balanced Substrings · Shortest Unsorted Continuous Subarray · Reverse Vowels of a String · Super Ugly Number

Questions people ask

What coding questions does Deloitte ask most?

Merge k Sorted Lists, Two Sum, Longest Substring Without Repeating Characters, Valid Parentheses, Longest Palindromic Substring, Palindrome Number, Best Time to Buy and Sell Stock, Group Anagrams.

Which topics come up in Deloitte coding rounds?

strings, arrays, linked list, dynamic programming, stack, sliding window.

How hard are Deloitte coding questions?

Of the reported questions, 19 are easy, 18 medium and 4 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.