Sector file // dsa
DATA STRUCTURES & ALGORITHMSDECODED.
Algorithms & data structures
Easy
13 questionsHow do you reverse a linked list?
DSA Β· 1.2k views Β· linked-list
How do you solve the climbing stairs problem?
DSA Β· 1.1k views Β· dp, climbing-stairs
How do you merge two sorted linked lists?
DSA Β· 839 views Β· linked-list
What is space complexity, and how much stack space does recursion use?
DSA Β· 738 views Β· dsa, complexity, recursion
What is recursion and what is a base case?
DSA Β· 682 views Β· recursion
What is a binary search tree (BST)?
DSA Β· 675 views Β· trees, bst
How do you check if a root-to-leaf path sums to a target?
DSA Β· 609 views Β· trees, recursion
How do you invert a binary tree?
DSA Β· 533 views Β· dsa, binary-tree, recursion
Medium
30 questionsWhat is topological sort and when is it used?
DSA Β· 1.2k views Β· graphs, topological-sort
What is dynamic programming?
DSA Β· 1.2k views Β· dynamic-programming
How do you find the lowest common ancestor in a binary tree?
DSA Β· 1.1k views Β· trees, lca
How do you solve the course schedule (prerequisites) problem?
DSA Β· 1.1k views Β· graphs, topological-sort
How does Quickselect find the kth smallest/largest element?
DSA Β· 1.1k views Β· quickselect, arrays
How do you check if a binary tree is balanced?
DSA Β· 1.1k views Β· trees, balanced
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
Hard
6 questionsHow do you serialize and deserialize a binary tree?
DSA Β· 870 views Β· trees, serialization
Longest increasing path in matrix β why DFS + memo beats brute force?
DSA Β· 774 views Β· dfs, memo, Google
What is a segment tree and when do you need one?
DSA Β· 631 views Β· dsa, segment-tree, range-query
Burst Balloons: why does DP over intervals (not balloons) work?
DSA Β· 580 views Β· dp, interval, Google
How do you solve the N-Queens problem?
DSA Β· 563 views Β· dsa, backtracking
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