Sector file // dsa
DATA STRUCTURES & ALGORITHMSDECODED.
Algorithms & data structures
Easy
9 questionsHow do you reverse a linked list?
DSA Β· 1.2k views Β· linked-list
How does binary search work and what are its requirements?
DSA Β· 1.1k views Β· binary-search
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
How do you find the intersection node of two linked lists?
DSA Β· 877 views Β· linked-list, two-pointers
How do you merge two sorted linked lists?
DSA Β· 839 views Β· linked-list
How do you find the middle of a linked list?
DSA Β· 775 views Β· linked-list, two-pointers
How do you check if a linked list is a palindrome?
DSA Β· 171 views Β· linked-list, two-pointers
Medium
6 questionsHow do you add two numbers stored as linked lists?
DSA Β· 1.1k views Β· linked-list, math
How do you remove the nth node from the end of a linked list?
DSA Β· 930 views Β· linked-list, two-pointers
How do you find the node where a linked list cycle begins?
DSA Β· 607 views Β· linked-list, cycle
How do you detect a cycle in a linked list?
DSA Β· 474 views Β· linked-list, pointers
Merge k sorted lists: heap vs divide-and-conquer β which is better for n=10k?
DSA Β· 281 views Β· heap, linked list, Google
Compare common sorting algorithms.
DSA Β· 219 views Β· sorting
Hard
3 questionsHow do you design an LRU cache?
DSA Β· 1.2k views Β· lru, design
How do you merge k sorted lists?
DSA Β· 1.1k views Β· heap, linked-list
Design an LRU Cache with O(1) get and put β why doubly linked list + hash map?
DSA Β· 449 views Β· lru, hash map, Amazon
Seen a Data Structures & Algorithms question that is not here? Add it and help the next candidate.
Share a question