CONTENTS

Top 75+ DSA Questions by Topic

A topic-wise DSA question list for interviews, mapped to arrays, strings, linked lists, stacks, trees, graphs, DP, heaps, greedy, bits, math, and tries.

May 29, 2026
50
A

This list gives you a practical question order. It is not meant to be a random dump. Finish one topic, take the linked quizzes, then move to the next topic.

Question Roadmap

TopicStart WithThen Add
ArraysTwo Sum, Kadane, Move ZeroesSort Colors, Next Permutation
StringsAnagram, Palindrome, Sliding WindowKMP, Longest Common Prefix
Linked ListReverse, Cycle, MiddleRemove Nth From End, Merge Lists
TreesDepth, Traversals, Validate BSTLCA, Diameter, Kth Smallest
GraphsConnected Components, Islands, Flood FillCourse Schedule, Union Find
DPClimbing Stairs, House RobberCoin Change, LIS, LCS, Knapsack
AdvancedHeap, Greedy, Bits, MathTrie, LRU, Segment Tree, Fenwick

Practice Rule

For each question, write three things before code: the brute force, the optimized invariant, and one dry run. This prevents memorized solutions from collapsing in interviews.

FAQs

Should I do all easy questions first?

No. Mix easy and medium questions inside the same pattern so the pattern becomes transferable.

When should I attempt hard questions?

After you can explain the medium version without looking at code.

Share this article

0 comments

Please login to comment.
No comments yet.