Sector file // dsa
DATA STRUCTURES & ALGORITHMSDECODED.
Algorithms & data structures
154 Questions95.4k Views6.3k Upvotes
38 easy89 med27 hard
Answers in
Medium
4 questionsHow do you implement a queue using two stacks?
DSA ยท 1.1k views ยท stack, queue
Views:1.1kLikes:43
Implement Trie for autocomplete โ how do you handle wildcards (.)?
DSA ยท 899 views ยท trie, string, Google
Views:899Likes:39
How do you design a min stack with O(1) getMin?
DSA ยท 291 views ยท dsa, stack, design
Views:291Likes:38
Find median from data stream with two heaps โ invariant and rebalancing?
DSA ยท 179 views ยท heap, design, Amazon
Views:179Likes:14
Hard
5 questionsHow do you design an LRU cache?
DSA ยท 1.2k views ยท lru, design
Views:1.2kLikes:9
How do you serialize and deserialize a binary tree?
DSA ยท 870 views ยท trees, serialization
Views:870Likes:58
Design an LRU Cache with O(1) get and put โ why doubly linked list + hash map?
DSA ยท 449 views ยท lru, hash map, Amazon
Views:449Likes:30
How do you find the median from a data stream?
DSA ยท 240 views ยท heap, design
Views:240Likes:63
Design Twitter feed: how do you fan-out with heap + hash for timeline?
DSA ยท 133 views ยท system design, heap, Meta
Views:133Likes:25
Seen a Data Structures & Algorithms question that is not here? Add it and help the next candidate.
Share a question