Sector file // dsa
DATA STRUCTURES & ALGORITHMSDECODED.
Algorithms & data structures
154 Questions95.4k Views6.3k Upvotes
38 easy89 med27 hard
Answers in
Easy
8 questionsWhat is Big-O notation?
DSA · 893 views · complexity, big-o
Views:893Likes:73
How do you find the missing number in 0..n?
DSA · 871 views · arrays, math
Views:871Likes:60
How do you find the longest common prefix of an array of strings?
DSA · 742 views · dsa, strings
Views:742Likes:69
What is a stable sorting algorithm?
DSA · 485 views · stability, sorting
Views:485Likes:44
How do you find the single number where every other element appears twice?
DSA · 331 views · arrays, bit-manipulation
Views:331Likes:53
How do you merge two sorted arrays?
DSA · 317 views · sorting, merge
Views:317Likes:63
How do you find the majority element?
DSA · 302 views · arrays, boyer-moore
Views:302Likes:35
How do you solve the Two Sum problem efficiently?
DSA · 46 views · arrays, hashing
Views:46Likes:43
Medium
11 questionsHow do you find the k closest points to the origin?
DSA · 1.1k views · heap, geometry
Views:1.1kLikes:28
How does Quickselect find the kth smallest/largest element?
DSA · 1.1k views · quickselect, arrays
Views:1.1kLikes:64
Implement Trie for autocomplete — how do you handle wildcards (.)?
DSA · 899 views · trie, string, Google
Views:899Likes:39
How do you sort an array of 0s, 1s, and 2s?
DSA · 826 views · arrays, sorting, dutch-flag
Views:826Likes:5
Find the kth largest element in an array
DSA · Amazon · 808 views · dsa, heap, arrays
Views:808Likes:268
How do you merge overlapping intervals?
DSA · 586 views · intervals, sorting
Views:586Likes:24
How do you find the minimum number of meeting rooms required?
DSA · 381 views · intervals, sorting, heap
Views:381Likes:3
How do you solve the 3Sum problem?
DSA · 333 views · arrays, two-pointers
Views:333Likes:7
Hard
2 questionsSeen a Data Structures & Algorithms question that is not here? Add it and help the next candidate.
Share a question