0 day streak

CRED coding interview questions

FintechProduct India Machine coding / LLD AI-assisted coding

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
Count Elements With Maximum FrequencyHashing Easy Arrays & Hashing Walmart Global Tech, Capgemini Solve
Longest Repeating Character ReplacementSliding Window · Variable Medium Arrays & Hashing Meta, Uber, Adobe +4 Solve
Accounts MergeConnected Components Medium Graphs Stripe, Pinterest, Palantir +1 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +49 Solve
Diameter of Binary TreePostorder + Multiple Return Values Easy Trees & BST Google, Meta, Nutanix +2 Solve
Maximum SwapRight to Left Traversal Medium Arrays & Hashing Meta Solve
Is SubsequenceTwo Pointer Easy Arrays & Hashing Pinterest, Tesla Solve
Open the LockBFS for shortest path Medium Graphs Oracle, D. E. Shaw, Juspay Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +50 Solve
Group AnagramsHashing Medium Arrays & Hashing Amazon, Microsoft, Meta +31 Solve
Subarray Sum Equals KPrefix Sum Strategy Medium Arrays & Hashing Google, Microsoft, Meta +15 Solve
Sliding Window MaximumMonotonic Stack Hard Monotonic Stack Google, Amazon, Microsoft +13 Solve
Top K Frequent WordsTop K / Kth Largest / Smallest Medium Heaps Amazon, Goldman Sachs, Ola Solve
Design HashMapPre-processing + tradeoffs Easy Design Data Structures Apple, Snowflake, VMware by Broadcom +1 Solve
Climbing Stairs1D DP Easy Dynamic Programming Bloomberg, Intuit, Qualcomm +8 Solve
Longest Consecutive SequenceHash Set Lookup Medium Arrays & Hashing Google, Bloomberg, Spotify +17 Solve
Find Median from Data StreamAdvanced Hard Heaps Google, Amazon, Apple +14 Solve
Word Search2D Matrix Backtracking Medium Recursion & Backtracking Google, Microsoft, Meta +13 Solve
Number of ProvincesConnected Components Medium Graphs Uber, Pinterest Solve
Binary Search Tree IteratorBST Basics Medium Trees & BST Meta, Adobe Solve
Decode Ways1D DP Medium Dynamic Programming Google, Meta, Goldman Sachs +3 Solve
Combination Sum (repeating elements)Pick / Not-Pick Medium Recursion & Backtracking Airbnb, Pinterest, Zomato +1 Solve
Spiral MatrixMatrix Traversal Medium Arrays & Hashing Microsoft, Apple, Databricks +15 Solve
Reverse Linked List IIFront Middle Back Pointer Medium Linked List Apple, Nutanix, Flipkart +1 Solve
Copy List with Random PointerMiscellaneous Medium Linked List Google, Amazon, Microsoft +8 Solve
Validate Binary Search TreePostorder + Multiple Return Values Medium Trees & BST Google, Microsoft, Meta +6 Solve
Path Sum IIIBacktracking Medium Trees & BST Zepto Solve
Rotting OrangesMulti source BFS Medium Graphs Amazon, Microsoft, Databricks +17 Solve
Time Based Key-Value StoreBasics Medium Binary Search Apple, Netflix, Databricks +5 Solve
Insert Delete GetRandom O(1)Hash Map + Array Medium Design Data Structures Amazon, Apple, Netflix +13 Solve
Minimum Window SubstringSliding Window · Hash Map Hard Arrays & Hashing Google, Meta, Apple +13 Solve
K Closest Points to OriginTop K / Kth Largest / Smallest Medium Heaps Google, Meta, Airbnb +1 Solve
Daily TemperaturesMonotonic Stack Medium Monotonic Stack Amazon, Salesforce, Intuit +5 Solve
Evaluate Reverse Polish NotationStack Basics Medium Stack Google, Tesla, Citi Solve
Container With Most WaterTwo Pointer Medium Arrays & Hashing Google, Microsoft, Apple +31 Solve
3SumTwo Sum Medium Arrays & Hashing Google, Microsoft, Meta +31 Solve
Add Two NumbersDummy Node Pattern Medium Linked List Amazon, Microsoft, Meta +12 Solve
Flatten Binary Tree to Linked ListTree to Lists and vice-versa Medium Trees & BST Citi Solve
Rotate ListDummy Node Pattern Medium Linked List Nvidia, InMobi, Jio Platforms Solve
Number of Islands IIConnected Components Hard Graphs Amazon, Uber Solve
Course Schedule IITopological Sort Medium Graphs Google, Amazon, Meta +15 Solve
Longest Increasing Path in a MatrixTopological Sort Hard Graphs Google, Microsoft, Meta +3 Solve
Trapping Rain Water IIAdvanced Hard Heaps Google, Palantir, Adobe +3 Solve

Questions people ask

What coding questions does CRED ask most?

Count Elements With Maximum Frequency, Longest Repeating Character Replacement, Accounts Merge, LRU Cache, Diameter of Binary Tree, Maximum Swap, Is Subsequence, Open the Lock.

Which topics come up in CRED coding rounds?

strings, trees, dynamic programming, union find, tries, sliding window.

How hard are CRED coding questions?

Of the reported questions, 5 are easy, 32 medium and 6 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.