Yandex Coding Interview Questions
87 coding problems are tagged as asked at Yandex in interviews and online assessments reported by candidates. By difficulty they split into 40 basic, 39 intermediate and 8 advanced. The topics they most often combine with are Array, String, Sorting, Hash Table.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Yandex tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Two Sum (Basic)
- Best Time to Buy and Sell Stock (Basic)
- Maximum Subarray (Intermediate)
- Valid Parentheses (Basic)
- Longest Substring Without Repeats (Intermediate)
- Product of Array Except Self (Intermediate)
- Move Zeroes (Basic)
- Search Insert Position (Basic)
- Coin Change (Intermediate)
- Longest Increasing Subsequence (Advanced)
- First Unique Character (Basic)
- Valid Palindrome (Basic)
- Majority Element (Basic)
- Intersection of Two Arrays (Basic)
- Two Sum in a Sorted Array (Basic)
- Minimum Size Subarray Sum (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Trapping Rain Water (Advanced)
- Longest Palindromic Substring (Intermediate)
- Valid Anagram (Basic)
- Remove Element (Basic)
- Max Consecutive Ones (Basic)
- Squares of a Sorted Array (Basic)
- Daily Temperatures (Intermediate)
- Add Binary (Basic)
- Reverse Integer (Intermediate)
- Search in a Rotated Sorted Array (Advanced)
- Minimum in a Rotated Sorted Array (Intermediate)
- Merge Intervals (Intermediate)
- Is Subsequence (Basic)
- Subarrays Divisible by K (Intermediate)
- Permutation Inside a String (Intermediate)
- Find K Closest Elements (Intermediate)
- Longest Substring With At Most K Letters (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Top K Frequent Values (Intermediate)
- Isomorphic Strings (Basic)
- Minimum Window Substring (Advanced)
- Add Strings (Basic)
- LRU Cache Operations (Basic)
- BST Range Sum (Basic)
- Reconstruct Itinerary (Advanced)
- Find Duplicate Subtrees (Basic)
- Minimum Number of Perfect Squares (Intermediate)
- Hit Counter (Intermediate)
- Text Justification (Intermediate)
- Reverse Linked List (Basic)
- Merge Two Sorted Lists (Basic)
- Remove Nth Node From End (Intermediate)
- Palindrome Linked List (Basic)
- Swap Nodes in Pairs (Intermediate)
- Symmetric Tree (Basic)
- Validate Binary Search Tree (Intermediate)
- Binary Tree Maximum Path Sum (Advanced)
- Binary Tree Right Side View (Intermediate)
- Zigzag Level Order Traversal (Intermediate)
- Lowest Common Ancestor of Two Values (Intermediate)
- Level Order Traversal (Basic)
- Number of Islands (Basic)
- Rotting Oranges (Intermediate)
- String Compression (Basic)
- Min Stack Operations (Basic)
- Evaluate Reverse Polish Notation (Intermediate)
- Basic Calculator II (Intermediate)
- Simplify Path (Intermediate)
- Interval List Intersections (Intermediate)
- Valid Sudoku (Intermediate)
- Valid Palindrome With One Deletion (Basic)
- Sliding Window Maximum Values (Advanced)
- Longest Substring With At Least K Repeats (Intermediate)
- Maximize Distance to Closest Person (Basic)
- Search a 2D Matrix (Intermediate)
- Median of Two Sorted Arrays (Advanced)
- Letter Combinations of a Phone Number (Intermediate)
- Find the Difference of Two Arrays (Basic)
- One Edit Distance (Basic)
- Jewels and Stones (Basic)
- Destination City (Basic)
Related
- Yandex basic problems
- Yandex intermediate problems
- Yandex advanced problems
- Yandex Array problems
- Yandex String problems
- Yandex Sorting problems
- Yandex Hash Table problems
- Yandex Tree problems
- Yandex Sliding Window problems
- Yandex Math problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Yandex problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact Yandex interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.