Sector file // dsa
DATA STRUCTURES & ALGORITHMSDECODED.
Algorithms & data structures
Easy
2 questionsMedium
15 questionsWhat is topological sort and when is it used?
DSA ยท 1.2k views ยท graphs, topological-sort
How do you solve the course schedule (prerequisites) problem?
DSA ยท 1.1k views ยท graphs, topological-sort
How do you detect a cycle in a directed graph?
DSA ยท 1k views ยท graphs, cycle
How do you check if a graph is bipartite?
DSA ยท 988 views ยท graphs, bfs, coloring
How do you generate all permutations of an array?
DSA ยท 801 views ยท dsa, backtracking, recursion
How do you count connected components in an undirected graph?
DSA ยท 719 views ยท graphs, union-find, dfs
When would you use BFS over Dijkstra for shortest paths?
DSA ยท 649 views ยท graphs, shortest-path
What is the difference between BFS and DFS?
DSA ยท 528 views ยท graphs, bfs, dfs
Hard
7 questionsHow does the Floyd-Warshall algorithm work?
DSA ยท 900 views ยท dsa, graph, shortest-path
How does the Bellman-Ford algorithm work?
DSA ยท 846 views ยท graphs, shortest-path
How do you solve the word ladder problem?
DSA ยท 819 views ยท graphs, bfs
Alien Dictionary: given sorted words in an alien language, how do you derive the character order?
DSA ยท 741 views ยท topological sort, graph, Google
What is the difference between Kruskal's and Prim's MST algorithms?
DSA ยท 698 views ยท graphs, mst
How do you find strongly connected components in a directed graph?
DSA ยท 435 views ยท dsa, graph, scc
How does Dijkstra's algorithm work?
DSA ยท 224 views ยท graphs, shortest-path
Seen a Data Structures & Algorithms question that is not here? Add it and help the next candidate.
Share a question