Sector file // dsa
DATA STRUCTURES & ALGORITHMSDECODED.
Algorithms & data structures
Easy
38 questionsStart hereHow do you reverse a linked list?
DSA · 1.2k views · linked-list
What is the prefix sum technique?
DSA · 1.2k views · dsa, prefix-sum, arrays
How does binary search work and what are its requirements?
DSA · 1.1k views · binary-search
How do you solve the climbing stairs problem?
DSA · 1.1k views · dp, climbing-stairs
What is the difference between an array and a linked list?
DSA · 1.1k views · arrays, linked-list
What is the fast and slow pointer technique?
DSA · 948 views · dsa, linked-list, two-pointers
What is a graph, and how do you represent it?
DSA · 921 views · dsa, graph, adjacency-list
What is the difference between a stack and a queue?
DSA · 918 views · stack, queue
Medium
89 questionsWhat is topological sort and when is it used?
DSA · 1.2k views · graphs, topological-sort
What is dynamic programming?
DSA · 1.2k views · dynamic-programming
What is a trie and when is it useful?
DSA · 1.1k views · trie, strings
How do you find the lowest common ancestor in a binary tree?
DSA · 1.1k views · trees, lca
How do you find the k closest points to the origin?
DSA · 1.1k views · heap, geometry
How do you solve the 0/1 knapsack problem?
DSA · 1.1k views · dp, knapsack
How do you solve the course schedule (prerequisites) problem?
DSA · 1.1k views · graphs, topological-sort
How do you add two numbers stored as linked lists?
DSA · 1.1k views · linked-list, math
Hard
27 questionsSliding window median: how do you maintain median with two heaps as the window slides?
DSA · 1.2k views · heap, sliding window, Meta
How do you design an LRU cache?
DSA · 1.2k views · lru, design
How does the KMP string-matching algorithm work?
DSA · 1.2k views · dsa, strings, pattern-matching
How do you merge k sorted lists?
DSA · 1.1k views · heap, linked-list
Minimum window substring: how does the sliding window with need/have counters work?
DSA · 1.0k views · sliding window, string, Meta
How do you find the minimum window substring?
DSA · 932 views · strings, sliding-window
How does the Floyd-Warshall algorithm work?
DSA · 897 views · dsa, graph, shortest-path
How do you serialize and deserialize a binary tree?
DSA · 870 views · trees, serialization
Seen a Data Structures & Algorithms question that is not here? Add it and help the next candidate.
Share a question