Sector file // dsa
DATA STRUCTURES & ALGORITHMSDECODED.
Algorithms & data structures
Easy
3 questionsWhat is the fast and slow pointer technique?
DSA Β· 949 views Β· dsa, linked-list, two-pointers
How do you find the intersection node of two linked lists?
DSA Β· 878 views Β· linked-list, two-pointers
How do you find a duplicate in an array?
DSA Β· 100 views Β· arrays, duplicates
Medium
12 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 rotate an array by k positions?
DSA Β· 883 views Β· arrays, rotation
How do you count connected components in an undirected graph?
DSA Β· 719 views Β· graphs, union-find, dfs
How do you find the node where a linked list cycle begins?
DSA Β· 611 views Β· linked-list, cycle
What is the difference between BFS and DFS?
DSA Β· 528 views Β· graphs, bfs, dfs
Hard
5 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
Longest increasing path in matrix β why DFS + memo beats brute force?
DSA Β· 777 views Β· dfs, memo, Google
Alien Dictionary: given sorted words in an alien language, how do you derive the character order?
DSA Β· 741 views Β· topological sort, graph, Google
How do you find strongly connected components in a directed graph?
DSA Β· 435 views Β· dsa, graph, scc
Seen a Data Structures & Algorithms question that is not here? Add it and help the next candidate.
Share a question