Sector file // dsa
DATA STRUCTURES & ALGORITHMSDECODED.
Algorithms & data structures
154 Questions95.4k Views6.3k Upvotes
38 easy89 med27 hard
Answers in
Easy
4 questionsWhat is the difference between a stack and a queue?
DSA Β· 918 views Β· stack, queue
Views:918Likes:39
How do you invert a binary tree?
DSA Β· 533 views Β· dsa, binary-tree, recursion
Views:533Likes:62
What are the tree traversal methods?
DSA Β· 142 views Β· traversal, trees
Views:142Likes:39
How do you find the maximum depth of a binary tree?
DSA Β· 89 views Β· trees, recursion
Views:89Likes:37
Medium
12 questionsHow do you check if a graph is bipartite?
DSA Β· 987 views Β· graphs, bfs, coloring
Views:987Likes:32
How do you get the right-side view of a binary tree?
DSA Β· 791 views Β· trees, bfs
Views:791Likes:13
How do you count connected components in an undirected graph?
DSA Β· 717 views Β· graphs, union-find, dfs
Views:717Likes:46
When would you use BFS over Dijkstra for shortest paths?
DSA Β· 647 views Β· graphs, shortest-path
Views:647Likes:21
How do you do a level-order (BFS) traversal of a tree?
DSA Β· 643 views Β· trees, bfs
Views:643Likes:12
What is the difference between BFS and DFS?
DSA Β· 525 views Β· graphs, bfs, dfs
Views:525Likes:1
Number of islands with DFS vs BFS vs Union-Find β trade-offs?
DSA Β· 415 views Β· dfs, bfs, Meta
Views:415Likes:25
How do you solve the Rotting Oranges problem with multi-source BFS?
DSA Β· 292 views Β· dsa, graph, bfs
Views:292Likes:45
Hard
3 questionsHow do you serialize and deserialize a binary tree?
DSA Β· 870 views Β· trees, serialization
Views:870Likes:58
How do you solve the word ladder problem?
DSA Β· 817 views Β· graphs, bfs
Views:817Likes:23
How do you find strongly connected components in a directed graph?
DSA Β· 435 views Β· dsa, graph, scc
Views:435Likes:0
Seen a Data Structures & Algorithms question that is not here? Add it and help the next candidate.
Share a question