Sector file // dsa
DATA STRUCTURES & ALGORITHMSDECODED.
Algorithms & data structures
Easy
7 questionsHow does binary search work and what are its requirements?
DSA · 1.1k views · binary-search
What is Big-O notation?
DSA · 893 views · complexity, big-o
What is the time complexity of common operations on arrays, hash maps, and balanced trees?
DSA · 753 views · complexity
What is space complexity, and how much stack space does recursion use?
DSA · 738 views · dsa, complexity, recursion
How should you approach a DSA problem in a coding interview?
DSA · 526 views · dsa, interview-strategy, problem-solving
How do you check if two strings are anagrams?
DSA · 381 views · strings, hashing
How do you solve the Two Sum problem efficiently?
DSA · 46 views · arrays, hashing
Medium
20 questionsHow do you find the k closest points to the origin?
DSA · 1.1k views · heap, geometry
How do you implement a queue using two stacks?
DSA · 1.1k views · stack, queue
How do you generate all subsets of an array?
DSA · 962 views · dsa, backtracking, recursion
How do you solve the Combination Sum problem?
DSA · 907 views · dsa, backtracking
Implement Trie for autocomplete — how do you handle wildcards (.)?
DSA · 899 views · trie, string, Google
How do you generate all permutations of an array?
DSA · 800 views · dsa, backtracking, recursion
How do you count the number of set bits in an integer?
DSA · 725 views · bit-manipulation
What is binary search on the answer?
DSA · 610 views · binary-search, search-space
Hard
6 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 merge k sorted lists?
DSA · 1.1k views · heap, linked-list
How do you solve the word ladder problem?
DSA · 817 views · graphs, bfs
Alien Dictionary: given sorted words in an alien language, how do you derive the character order?
DSA · 739 views · topological sort, graph, Google
How do you solve the N-Queens problem?
DSA · 563 views · dsa, backtracking
How does Dijkstra's algorithm work?
DSA · 223 views · graphs, shortest-path
Seen a Data Structures & Algorithms question that is not here? Add it and help the next candidate.
Share a question