Data Structures & Algorithms Interview Questions & Answers — Cracked Java
Cracked Java console
0
S
Modules/Data Structures & Algorithms
// MODULE · 20 TOPICS · 219 QUESTIONS

Data Structures & Algorithms

Language-agnostic algorithmic foundations with Java examples and Java Collections mapping. Big-O, classic data structures, algorithm paradigms, and interview pattern recognition.

0%
Reviewed
0 / 219
Topics done
0 / 20
Est. time left
~80h
Next up
Big-O, Big-Theta, Big-Omega, Amortized Analysis
20 topics · tap to expand
01

Big-O, Big-Theta, Big-Omega, Amortized Analysis

JuniorNot started
02

Arrays & Strings

JuniorNot started
03

Linked Lists

MidNot started
04

Stacks & Queues

MidNot started
05

Hash Tables

MidNot started

Hashing, collision resolution, load factor and rehashing, hash functions, and the HashMap/HashSet/LinkedHashMap mapping. The single highest-leverage interview topic.

01Walk through HashMap.put step by step.Mid02Worst-case complexity of HashMap.get in modern Java?Mid03Open addressing vs chaining — trade-offs.Senior
06

Binary Trees & Binary Search Trees

MidNot started
07

Balanced Trees — AVL, Red-Black, B-trees

SeniorNot started
08

Heaps & Priority Queues

MidNot started
09

Tries (Prefix Trees)

SeniorNot started

Trie node structure, insert/search/prefix operations, space/time trade-offs, and applications like autocomplete and word search.

01When is a trie better than a hash set?Mid02Space cost of a trie — when does it become prohibitive?Senior03Implement a Trie (insert, search, startsWith).Mid
10

Graphs — Representation, BFS, DFS

SeniorNot started

Adjacency list vs matrix, BFS for unweighted shortest path, DFS for connectivity/cycles, topological sort, and connected components.

01Adjacency list vs matrix — space and time trade-offs.Mid02When does BFS find the shortest path?Mid03DFS — recursive vs iterative (with explicit stack).Mid
11

Shortest Path & Minimum Spanning Tree

SeniorNot started
12

Union-Find (Disjoint Set Union)

SeniorNot started

Path compression, union by rank/size, near-constant amortized time (inverse Ackermann), and the classic applications.

01Path compression — what does it do and why?Senior02Union by rank vs union by size.Senior03Why is the amortized cost effectively O(1)?Senior
13

Sorting Algorithms

MidNot started

Comparison and non-comparison sorts, stability and in-place properties, the Ω(n log n) lower bound, and what Arrays.sort/Collections.sort actually use.

01Compare QuickSort, MergeSort, HeapSort: time, space, stability.Mid02Why does Arrays.sort use Quicksort for primitives but Timsort for objects?Senior03What is Timsort? Why is it real-world-fast?Senior
14

Searching & Binary Search

MidNot started
15

Recursion & Backtracking

SeniorNot started
16

Dynamic Programming

SeniorNot started

Overlapping subproblems and optimal substructure, memoization vs tabulation, finding the state, space optimization, and the knapsack family. The highest-leverage senior topic.

01The two properties a problem needs for DP to apply.Senior02Memoization vs tabulation — when to use each?Mid03How do you "find the state" of a DP problem?Senior
17

Greedy Algorithms

SeniorNot started

The greedy-choice property, when greedy works vs when it fails, the exchange argument, and how to decide greedy vs DP.

01When does greedy work? When does it fail?Senior02The exchange argument — what is it?Senior03Greedy vs DP — how to decide which to use.Senior
18

Bit Manipulation

SeniorNot started
19

Math & Number Theory

SeniorNot started
20

Pattern Recognition for Interview Problems

SeniorNot started