Yandex logo YA
Verified Company Vault 30d Active

Yandex DSA Interview Questions

129 curated coding interview questions directly asked in Yandex technical rounds, sorted by frequency with recency and difficulty diagnostics.

129 Total Questions
52 (40%) Easy Problems
68 (53%) Medium Problems
9 (7%) Hard Problems
🔥 Most Tested Topics:
Arrays (42)Core DSA (35)Strings (24)Trees (19)Linked List (7)
📂 Sourced Datasets:
Last 30 daysLast 3 monthsLast 6 monthsAll questionsOlder than 6 months
Showing 129 of 129 displayed
IDProblemDifficultyTopicPatternAcceptanceFrequencyRecency
56Merge IntervalsMediumArraysSorting / Prefix / Scan51.8%100.0%30d
1493Longest Subarray of 1's After Deleting One ElementMediumArraysSorting / Prefix / Scan71.2%87.5%30d
849Maximize Distance to Closest PersonMediumCore DSAImplementation / Reasoning49.8%87.5%3m
228Summary RangesEasyArraysSorting / Prefix / Scan54.2%87.5%3m
658Find K Closest ElementsMediumCore DSAImplementation / Reasoning49.7%87.5%3m
560Subarray Sum Equals KMediumArraysSorting / Prefix / Scan47.3%75.0%3m
3Longest Substring Without Repeating CharactersMediumStrings; TreesHashing / Sliding Window; DFS / BFS; Sliding Window39.1%75.0%3m
680Valid Palindrome IIEasyStringsHashing / Sliding Window44.3%75.0%3m
200Number of IslandsMediumGraphsBFS / DFS / Topological Sort64.4%75.0%3m
986Interval List IntersectionsMediumArrays; Linked ListSorting / Prefix / Scan; Two Pointers73.0%75.0%3m
161One Edit DistanceMediumDynamic ProgrammingState Transition34.6%75.0%all
205Isomorphic StringsEasyStringsHashing / Sliding Window48.4%75.0%all
283Move ZeroesEasyCore DSATwo Pointers63.8%75.0%all
380Insert Delete GetRandom O(1)MediumCore DSAImplementation / Reasoning55.4%75.0%all
2657Find the Prefix Common Array of Two ArraysMediumArraysSorting / Prefix / Scan88.3%75.0%all
356Line ReflectionMediumCore DSAImplementation / Reasoning36.3%62.5%6m
438Find All Anagrams in a StringMediumStringsHashing / Sliding Window53.8%62.5%6m
443String CompressionMediumStringsHashing / Sliding Window60.0%62.5%6m
5Longest Palindromic SubstringMediumStrings; TreesHashing / Sliding Window; DFS / BFS37.8%62.5%6m
3105Longest Strictly Increasing or Strictly Decreasing SubarrayEasyArraysSorting / Prefix / Scan64.9%62.5%6m
125Valid PalindromeEasyStringsHashing / Sliding Window53.3%62.5%6m
1Two SumEasyArraysSorting / Prefix / Scan; Two Pointers57.5%62.5%6m
11Container With Most WaterMediumCore DSATwo Pointers60.0%62.5%6m
652Find Duplicate SubtreesMediumArrays; TreesSorting / Prefix / Scan; DFS / BFS60.7%62.5%6m
340Longest Substring with At Most K Distinct CharactersMediumStrings; TreesHashing / Sliding Window; DFS / BFS; Sliding Window50.0%62.5%6m
2629Function CompositionEasyCore DSAImplementation / Reasoning86.8%62.5%6m
567Permutation in StringMediumStrings; BacktrackingHashing / Sliding Window; Sliding Window; Backtracking48.9%62.5%6m
33Search in Rotated Sorted ArrayMediumArrays; Binary SearchSorting / Prefix / Scan; Binary Search44.9%62.5%6m
53Maximum SubarrayMediumArraysSorting / Prefix / Scan53.3%62.5%6m
236Lowest Common Ancestor of a Binary TreeMediumTreesDFS / BFS69.3%62.5%6m
279Perfect SquaresMediumCore DSAImplementation / Reasoning56.5%62.5%6m
23Merge k Sorted ListsHardArrays; Linked List; HeapSorting / Prefix / Scan; Two Pointers; Priority Queue59.6%62.5%6m
20Valid ParenthesesEasyStringsHashing / Sliding Window44.2%62.5%all
21Merge Two Sorted ListsEasyArrays; Linked ListSorting / Prefix / Scan; Two Pointers68.3%62.5%all
42Trapping Rain WaterHardCore DSATwo Pointers67.4%62.5%all
49Group AnagramsMediumStringsHashing / Sliding Window72.6%62.5%all
88Merge Sorted ArrayEasyArraysSorting / Prefix / Scan54.9%62.5%all
155Min StackMediumStack / QueueMonotonic Stack / Simulation58.2%62.5%all
238Product of Array Except SelfMediumArraysSorting / Prefix / Scan68.9%62.5%all
2241Design an ATM MachineMediumDesignData Structure Design45.1%62.5%all
392Is SubsequenceEasyCore DSAImplementation / Reasoning49.0%62.5%all
977Squares of a Sorted ArrayEasyArraysSorting / Prefix / Scan73.8%62.5%all
4Median of Two Sorted ArraysHardArrays; HeapSorting / Prefix / Scan; Priority Queue46.6%50.0%all
22Generate ParenthesesMediumStringsHashing / Sliding Window78.7%50.0%all
71Simplify PathMediumCore DSAImplementation / Reasoning50.6%50.0%all
101Symmetric TreeEasyTreesDFS / BFS61.2%50.0%all
124Binary Tree Maximum Path SumHardArrays; TreesSorting / Prefix / Scan; DFS / BFS42.3%50.0%all
1004Max Consecutive Ones IIIMediumCore DSAImplementation / Reasoning67.7%50.0%all
146LRU CacheMediumDesignData Structure Design47.4%50.0%all
199Binary Tree Right Side ViewMediumTreesDFS / BFS70.2%50.0%all
332Reconstruct ItineraryHardCore DSAImplementation / Reasoning44.6%50.0%all
362Design Hit CounterMediumDesignData Structure Design69.7%50.0%all
933Number of Recent CallsEasyCore DSAImplementation / Reasoning78.5%50.0%all
227Basic Calculator IIMediumStack / QueueMonotonic Stack / Simulation46.9%50.0%all
2743Count Substrings Without Repeating CharacterMediumStrings; TreesHashing / Sliding Window; DFS / BFS75.9%50.0%all
2Add Two NumbersMediumCore DSAImplementation / Reasoning48.5%37.5%all
27Remove ElementEasyCore DSAImplementation / Reasoning61.8%37.5%all
76Minimum Window SubstringHardArrays; Strings; TreesSorting / Prefix / Scan; Hashing / Sliding Window; DFS / BFS; Sliding Window47.5%37.5%all
98Validate Binary Search TreeMediumStrings; Trees; Binary SearchHashing / Sliding Window; DFS / BFS; Binary Search35.8%37.5%all
103Binary Tree Zigzag Level Order TraversalMediumTreesDFS / BFS63.7%37.5%all
121Best Time to Buy and Sell StockEasyCore DSAImplementation / Reasoning56.8%37.5%all
153Find Minimum in Rotated Sorted ArrayMediumArrays; Binary SearchSorting / Prefix / Scan; Binary Search54.7%37.5%all
206Reverse Linked ListEasyLinked ListTwo Pointers80.6%37.5%all
235Lowest Common Ancestor of a Binary Search TreeMediumTrees; Binary SearchDFS / BFS; Binary Search70.6%37.5%all
300Longest Increasing SubsequenceMediumDynamic ProgrammingState Transition59.4%37.5%all
349Intersection of Two ArraysEasyArraysSorting / Prefix / Scan77.8%37.5%all
350Intersection of Two Arrays IIEasyArraysSorting / Prefix / Scan59.9%37.5%all
424Longest Repeating Character ReplacementMediumStringsHashing / Sliding Window59.7%37.5%all
485Max Consecutive OnesEasyCore DSAImplementation / Reasoning65.2%37.5%all
523Continuous Subarray SumMediumArraysSorting / Prefix / Scan31.4%37.5%all
1436Destination CityEasyCore DSAImplementation / Reasoning79.5%37.5%all
605Can Place FlowersEasyCore DSAImplementation / Reasoning29.1%37.5%all
896Monotonic ArrayEasyArraysSorting / Prefix / Scan62.3%37.5%all
1868Product of Two Run-Length Encoded ArraysMediumArraysSorting / Prefix / Scan59.6%37.5%all
674Longest Continuous Increasing SubsequenceEasyCore DSAImplementation / Reasoning52.1%37.5%all
938Range Sum of BSTEasyArrays; TreesSorting / Prefix / Scan; DFS / BFS87.6%37.5%all
17Letter Combinations of a Phone NumberMediumStrings; BacktrackingHashing / Sliding Window; Backtracking66.1%37.5%all
26Remove Duplicates from Sorted ArrayEasyArraysSorting / Prefix / Scan; Two Pointers62.8%37.5%all
184SumMediumArraysSorting / Prefix / Scan40.6%37.5%all
232Implement Queue using StacksEasyStack / QueueMonotonic Stack / Simulation69.8%37.5%all
1656Design an Ordered StreamEasyDesignData Structure Design82.7%37.5%all
19Remove Nth Node From End of ListMediumTrees; Linked ListDFS / BFS; Two Pointers51.6%37.5%all
102Binary Tree Level Order TraversalMediumTreesDFS / BFS72.7%37.5%all
295Find Median from Data StreamHardHeapPriority Queue54.5%37.5%all
415Add StringsEasyStringsHashing / Sliding Window52.2%37.5%all
141Linked List CycleEasyLinked ListTwo Pointers54.3%37.5%all
239Sliding Window MaximumHardArraysSorting / Prefix / Scan; Sliding Window48.8%37.5%all
2666Allow One Function CallEasyCore DSAImplementation / Reasoning86.6%37.5%all
7Reverse IntegerMediumCore DSAImplementation / Reasoning31.9%25.0%all
136Single NumberEasyCore DSAImplementation / Reasoning77.7%25.0%all
167Two Sum II - Input Array Is SortedMediumArraysSorting / Prefix / Scan; Two Pointers65.1%25.0%all
169Majority ElementEasyCore DSAImplementation / Reasoning66.3%25.0%all
234Palindrome Linked ListEasyStrings; Linked ListHashing / Sliding Window; Two Pointers58.0%25.0%all
242Valid AnagramEasyStringsHashing / Sliding Window68.1%25.0%all
387First Unique Character in a StringEasyStringsHashing / Sliding Window65.5%25.0%all
395Longest Substring with At Least K Repeating CharactersMediumStrings; TreesHashing / Sliding Window; DFS / BFS; Sliding Window46.3%25.0%all
771Jewels and StonesEasyCore DSAImplementation / Reasoning89.6%25.0%all
68Text JustificationHardCore DSAImplementation / Reasoning51.2%25.0%all
322Coin ChangeMediumDynamic ProgrammingState Transition48.4%25.0%all
13Roman to IntegerEasyStringsHashing / Sliding Window66.6%25.0%all
2570Merge Two 2D Arrays by Summing ValuesEasyArraysSorting / Prefix / Scan81.7%25.0%all
470Implement Rand10() Using Rand7()MediumCore DSAImplementation / Reasoning46.4%25.0%all
739Daily TemperaturesMediumStack / QueueMonotonic Stack / Simulation68.7%25.0%all
24Swap Nodes in PairsMediumTreesDFS / BFS69.5%25.0%all
1650Lowest Common Ancestor of a Binary Tree IIIMediumTreesDFS / BFS83.0%25.0%all
2667Create Hello World FunctionEasyCore DSAImplementation / Reasoning81.9%25.0%all
1572Matrix Diagonal SumEasyArraysSorting / Prefix / Scan84.3%25.0%all
1386Cinema Seat AllocationMediumCore DSAImplementation / Reasoning44.6%25.0%all
2665Counter IIEasyCore DSAImplementation / Reasoning81.2%25.0%all
35Search Insert PositionEasyBinary SearchBinary Search51.3%25.0%all
1496Path CrossingEasyCore DSAImplementation / Reasoning62.6%25.0%all
994Rotting OrangesMediumCore DSAImplementation / Reasoning58.7%25.0%all
181Employees Earning More Than Their ManagersEasyCore DSAImplementation / Reasoning73.2%25.0%all
643Maximum Average Subarray IEasyArraysSorting / Prefix / Scan47.8%25.0%all
2215Find the Difference of Two ArraysEasyArraysSorting / Prefix / Scan81.4%25.0%all
2956Find Common Elements Between Two ArraysEasyArraysSorting / Prefix / Scan84.5%25.0%all
974Subarray Sums Divisible by KMediumArraysSorting / Prefix / Scan56.3%25.0%all
209Minimum Size Subarray SumMediumArraysSorting / Prefix / Scan51.7%25.0%all
74Search a 2D MatrixMediumArrays; Binary SearchSorting / Prefix / Scan; Binary Search53.9%25.0%all
1438Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMediumArraysSorting / Prefix / Scan57.7%25.0%all
150Evaluate Reverse Polish NotationMediumCore DSAImplementation / Reasoning57.8%25.0%all
1464Maximum Product of Two Elements in an ArrayEasyArraysSorting / Prefix / Scan83.6%25.0%all
54Spiral MatrixMediumArraysSorting / Prefix / Scan56.8%25.0%all
281Zigzag IteratorMediumDesignData Structure Design67.0%25.0%all
704Binary SearchEasyBinary SearchBinary Search60.9%25.0%all
1229Meeting SchedulerMediumGreedyGreedy55.2%25.0%all
347Top K Frequent ElementsMediumHeapPriority Queue66.4%25.0%all
48Rotate ImageMediumArraysSorting / Prefix / Scan80.1%25.0%all
9Palindrome NumberEasyStringsHashing / Sliding Window60.6%25.0%all