Top 100 Data Structure and Algorithms DSA Interview Questions Topic-wise Last Updated : 23 Sep, 2025 Suggest changes Share Like Article Like Report DSA has been one of the most popular go-to topics for any interview, be it college placements, software developer roles, or any other technical roles for freshers and experienced to land a decent job. If you are among them, you already know that it is not easy to find the best DSA interview questions among the vast pool of available problems. So here we are, with the Top 100 most asked DSA interview questions to help you sail through your technical rounds.For a quick and focused revision, check out our GfG-160Master Complete DSA from basic to advanced with DSA-360°ArrayPair with the given Sum Best Time to Buy and Sell Stock Product of Array Except SelfMaximum Subarray Container With Most WaterFactorial of a large numberTrapping Rain Water Insert and Merge IntervalsMerge Intervals For more, please refer Top 50 Array Interview QuestionsMatrixSpiral MatrixTranspose of a matrixWord SearchFor more, please refer Top 50 Matrix Interview QuestionsStringLongest Substring Without Repeating Longest Repeating Character ReplacementSmallest window containing all characters Print all anagrams together Sentence PalindromeLongest Palindromic SubstringPalindromic Substrings For more, please refer Top 50 String Interview Questions Searching and Sorting Search in Rotated Sorted ArrayPeak ElementK-th element of two sorted arraysAllocate Minimum PagesKth Missing Positive Number Sort 0s, 1s and 2s Count Inversions Merge two sorted arrays without extra space Chocolate Distribution Problem HashingPrint all pairs with given sumLongest Subsequence with Adjacent Difference of 0 or 1Longest Consecutive SequenceCount Subarrays with given XORLinked ListReverse a Linked ListDetect Cycle in a Linked ListMerge Two Sorted ListsMerge K Sorted ListsRemove Nth Node From End Of ListReorder ListAdd 1 to a number represented as linked list Clone a Linked ListFor more, please refer Top 50 Linked List Interview QuestionsStack, Queue & DequeInfix to Postfix expressionNext Greater Element Largest Area in a HistogramDelete middle element of a stack Length of the longest valid substringSum of Max of Subarrays Next Greater Element in a Circular Array Longest Bounded-Difference Subarray K Sized Subarray MaximumFor more, please refer Stack Interview Questions, Queue Interview Questions, and Deque Interview QuestionsTreeMaximum Depth of Binary TreeCheck for Mirror TreesInvert/Flip Binary TreeBinary Tree Maximum Path SumBinary Tree Level Order TraversalSerialize and Deserialize Binary TreeSubtree of Another TreeConstruct Binary Tree from Preorder and Inorder TraversalValidate Binary Search TreeKth Smallest Element in a BSTLowest Common Ancestor of BSTImplement Trie (Prefix Tree) For more, please refer Top 50 Tree Interview Questions HeapTop K Frequent ElementsFind Median from Data StreamLargest triplet product in a streamConnect n RopesFor more, please refer Top 50 Heap Interview QuestionsGraphClone GraphCourse SchedulePacific Atlantic Water FlowNumber of Islands Snake and Ladder ProblemDetect Cycle in a Directed GraphBridges in a GraphCheck for Bipartite Largest region in Boolean MatrixFlood fill AlgorithmStrongly Connected ComponentsTopological SortingFor more, please refer Top 50 Graph Interview QuestionsDynamic Programming & GreedyCount ways to reach the n’th stairCoin Change0/1 Knapsack ProblemLongest Increasing SubsequenceLongest Common SubsequenceWord Break ProblemDice Throw Egg Dropping PuzzleMatrix Chain MultiplicationCombination SumSubset Sum ProblemMaximum possible stolen value Count Possible Decodings of a given Digit SequenceUnique paths in a Grid with ObstaclesJump GameCutting a RodMaximum Product CuttingCount number of ways to cover a distance Connect n ropes with minimum cost Largest Number in one SwapFor more, please refer Top DP Interview Questions & Top Greedy Interview QuestionsBit ManipulationsCounting BitsMissing Number Find XOR of all subsets of a setFor more, please refer Top Bit Manipulation Interview QuestionsRelated Links:DSA Tutorial GfG 160 System Design Tutorial P pinkigfg Follow Explore DSA FundamentalsLogic Building Problems 2 min read Analysis of Algorithms 1 min read Data StructuresArray Data Structure 3 min read String in Data Structure 2 min read Hashing in Data Structure 2 min read Linked List Data Structure 2 min read Stack Data Structure 2 min read Queue Data Structure 2 min read Tree Data Structure 2 min read Graph Data Structure 3 min read Trie Data Structure 15+ min read AlgorithmsSearching Algorithms 2 min read Sorting Algorithms 3 min read Introduction to Recursion 14 min read Greedy Algorithms 3 min read Graph Algorithms 3 min read Dynamic Programming or DP 3 min read Bitwise Algorithms 4 min read AdvancedSegment Tree 2 min read Binary Indexed Tree or Fenwick Tree 15 min read Square Root (Sqrt) Decomposition Algorithm 15+ min read Binary Lifting 15+ min read Geometry 2 min read Interview PreparationInterview Corner 3 min read GfG160 3 min read Practice ProblemGeeksforGeeks Practice - Leading Online Coding Platform 6 min read Problem of The Day - Develop the Habit of Coding 5 min read Article Tags : DSA Interview Questions interview-preparation Interview-Questions GFG Sheets DSA Sheet +2 More Like