Sector file // dsa
DATA STRUCTURES & ALGORITHMSDECODED.
Algorithms & data structures
154 Questions95.7k 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 · 873 views · arrays, math
Views:873Likes:60
How do you find the longest common prefix of an array of strings?
DSA · 744 views · dsa, strings
Views:744Likes:69
What is a stable sorting algorithm?
DSA · 486 views · stability, sorting
Views:486Likes:44
How do you find the single number where every other element appears twice?
DSA · 333 views · arrays, bit-manipulation
Views:333Likes:53
How do you merge two sorted arrays?
DSA · 318 views · sorting, merge
Views:318Likes:63
How do you find the majority element?
DSA · 304 views · arrays, boyer-moore
Views:304Likes:35
How do you solve the Two Sum problem efficiently?
DSA · 47 views · arrays, hashing
Views:47Likes: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 · 901 views · trie, string, Google
Views:901Likes:39
How do you sort an array of 0s, 1s, and 2s?
DSA · 827 views · arrays, sorting, dutch-flag
Views:827Likes:5
Find the kth largest element in an array
DSA · Amazon · 810 views · dsa, heap, arrays
Views:810Likes:268
How do you merge overlapping intervals?
DSA · 587 views · intervals, sorting
Views:587Likes:24
How do you find the minimum number of meeting rooms required?
DSA · 383 views · intervals, sorting, heap
Views:383Likes:3
How do you solve the 3Sum problem?
DSA · 335 views · arrays, two-pointers
Views:335Likes:7
Hard
2 questionsSeen a Data Structures & Algorithms question that is not here? Add it and help the next candidate.
Share a question