Sector file // dsa
DATA STRUCTURES & ALGORITHMSDECODED.
Algorithms & data structures
Easy
3 questionsWhat is the fast and slow pointer technique?
DSA Β· 948 views Β· dsa, linked-list, two-pointers
How do you find the intersection node of two linked lists?
DSA Β· 877 views Β· linked-list, two-pointers
How do you find a duplicate in an array?
DSA Β· 98 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 Β· 999 views Β· graphs, cycle
How do you check if a graph is bipartite?
DSA Β· 987 views Β· graphs, bfs, coloring
How do you rotate an array by k positions?
DSA Β· 881 views Β· arrays, rotation
How do you count connected components in an undirected graph?
DSA Β· 717 views Β· graphs, union-find, dfs
How do you find the node where a linked list cycle begins?
DSA Β· 607 views Β· linked-list, cycle
What is the difference between BFS and DFS?
DSA Β· 525 views Β· graphs, bfs, dfs
Hard
5 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
Longest increasing path in matrix β why DFS + memo beats brute force?
DSA Β· 774 views Β· dfs, memo, Google
Alien Dictionary: given sorted words in an alien language, how do you derive the character order?
DSA Β· 739 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