Sector file // dsa
DATA STRUCTURES & ALGORITHMSDECODED.
Algorithms & data structures
154 Questions95.7k Views6.3k Upvotes
38 easy89 med27 hard
Answers in
Easy
4 questionsWhat is the difference between a stack and a queue?
DSA Β· 920 views Β· stack, queue
Views:920Likes: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 Β· 143 views Β· traversal, trees
Views:143Likes:39
How do you find the maximum depth of a binary tree?
DSA Β· 90 views Β· trees, recursion
Views:90Likes:37
Medium
12 questionsHow do you check if a graph is bipartite?
DSA Β· 988 views Β· graphs, bfs, coloring
Views:988Likes: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 Β· 719 views Β· graphs, union-find, dfs
Views:719Likes:46
When would you use BFS over Dijkstra for shortest paths?
DSA Β· 649 views Β· graphs, shortest-path
Views:649Likes: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 Β· 528 views Β· graphs, bfs, dfs
Views:528Likes:1
Number of islands with DFS vs BFS vs Union-Find β trade-offs?
DSA Β· 416 views Β· dfs, bfs, Meta
Views:416Likes:25
How do you solve the Rotting Oranges problem with multi-source BFS?
DSA Β· 294 views Β· dsa, graph, bfs
Views:294Likes:45
Hard
3 questionsHow do you serialize and deserialize a binary tree?
DSA Β· 871 views Β· trees, serialization
Views:871Likes:58
How do you solve the word ladder problem?
DSA Β· 819 views Β· graphs, bfs
Views:819Likes: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