0 day streak

Yatra coding interview questions

ProductE-commerce and consumer 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
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Count of Subarrays with Product Less Than KSliding Window · Variable Medium Arrays & Hashing Apple, Expedia Group, Agoda +11 Solve
Sort ColorsDutch National Flag Medium Arrays & Hashing Microsoft, Nvidia, Expedia Group +43 Solve
Valid ParenthesesStack Basics Easy Stack Google, Amazon, Microsoft +119 Solve
Minimum Number of Steps to Make Two Strings AnagramHashing Medium Arrays & Hashing Bloomberg, DoorDash, X (Twitter) +7 Solve
Binary Tree Zigzag Level Order TraversalTraversals Medium Trees & BST Amazon, LinkedIn, Nutanix +23 Solve
Find the CelebrityCandidate Elimination Medium Graphs LinkedIn, Palantir, American Express +7 Solve
Longest Consecutive SequenceHash Set Lookup Medium Arrays & Hashing Google, Amazon, Microsoft +34 Solve
Intersection of Two Linked ListsMiscellaneous Easy Linked List LinkedIn, Airbnb, Akamai +26 Solve
3SumTwo Sum Medium Arrays & Hashing Google, Amazon, Microsoft +68 Solve
Flatten Binary Tree to Linked ListTree to Lists and vice-versa Medium Trees & BST Coupang, Anduril, Citi +2 Solve
Design HashMapPre-processing + tradeoffs Easy Design Data Structures Apple, Nvidia, Snowflake +25 Solve
Validate Binary Search TreePostorder + Multiple Return Values Medium Trees & BST Google, Microsoft, Meta +35 Solve
Copy List with Random PointerMiscellaneous Medium Linked List Google, Amazon, Microsoft +23 Solve
String CompressionTwo Pointer Medium Arrays & Hashing Microsoft, Stripe, Nvidia +34 Solve
Rotate StringString Basics Easy Arrays & Hashing Zoom, Rivian, ServiceNow +6 Solve
Rotate ImageIn-place Transformations Medium Arrays & Hashing Amazon, Apple, Nvidia +38 Solve
Reverse Nodes in k-GroupFront Middle Back Pointer Hard Linked List Amazon, Microsoft, Meta +33 Solve
Min StackStack Medium Design Data Structures Microsoft, Apple, Snowflake +33 Solve
Rat in a Maze2D Matrix Backtracking Medium Recursion & Backtracking Citi, Thoughtworks, Lenskart +1 Solve
Also reported, being added to AlgoRung (1)

Wiggle Sort

Questions people ask

What coding questions does Yatra ask most?

Count of Subarrays with Product Less Than K, Sort Colors, Valid Parentheses, Minimum Number of Steps to Make Two Strings Anagram, Binary Tree Zigzag Level Order Traversal, Find the Celebrity, Longest Consecutive Sequence, Intersection of Two Linked Lists.

Which topics come up in Yatra coding rounds?

stack, linked list, trees, strings, arrays, two pointers.

How hard are Yatra coding questions?

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