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 ยท 999 views ยท graphs, cycle
How do you check if a graph is bipartite?
DSA ยท 987 views ยท graphs, bfs, coloring
How do you generate all permutations of an array?
DSA ยท 800 views ยท dsa, backtracking, recursion
How do you count connected components in an undirected graph?
DSA ยท 717 views ยท graphs, union-find, dfs
When would you use BFS over Dijkstra for shortest paths?
DSA ยท 647 views ยท graphs, shortest-path
What is the difference between BFS and DFS?
DSA ยท 525 views ยท graphs, bfs, dfs
Hard
7 questionsHow does the Floyd-Warshall algorithm work?
DSA ยท 897 views ยท dsa, graph, shortest-path
How does the Bellman-Ford algorithm work?
DSA ยท 844 views ยท graphs, shortest-path
How do you solve the word ladder problem?
DSA ยท 817 views ยท graphs, bfs
Alien Dictionary: given sorted words in an alien language, how do you derive the character order?
DSA ยท 739 views ยท topological sort, graph, Google
What is the difference between Kruskal's and Prim's MST algorithms?
DSA ยท 696 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 ยท 223 views ยท graphs, shortest-path
Seen a Data Structures & Algorithms question that is not here? Add it and help the next candidate.
Share a question