Sector file // dsa
DATA STRUCTURES & ALGORITHMSDECODED.
Algorithms & data structures
154 Questions95.4k Views6.3k Upvotes
38 easy89 med27 hard
Answers in
Easy
3 questionsWhat is the difference between a stack and a queue?
DSA Β· 918 views Β· stack, queue
Views:918Likes:39
What is space complexity, and how much stack space does recursion use?
DSA Β· 738 views Β· dsa, complexity, recursion
Views:738Likes:59
What are the tree traversal methods?
DSA Β· 142 views Β· traversal, trees
Views:142Likes:39
Medium
13 questionsWhat is topological sort and when is it used?
DSA Β· 1.2k views Β· graphs, topological-sort
Views:1.2kLikes:36
How do you solve the course schedule (prerequisites) problem?
DSA Β· 1.1k views Β· graphs, topological-sort
Views:1.1kLikes:17
How do you detect a cycle in a directed graph?
DSA Β· 999 views Β· graphs, cycle
Views:999Likes:42
How do you check if a graph is bipartite?
DSA Β· 987 views Β· graphs, bfs, coloring
Views:987Likes:32
Implement Trie for autocomplete β how do you handle wildcards (.)?
DSA Β· 899 views Β· trie, string, Google
Views:899Likes:39
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
How do you do a level-order (BFS) traversal of a tree?
DSA Β· 643 views Β· trees, bfs
Views:643Likes:12
Hard
2 questionsSeen a Data Structures & Algorithms question that is not here? Add it and help the next candidate.
Share a question