Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ lib/highlight.tsx lib/progress.tsx lib/curriculum.ts lib/i18n.tsx
app/<ch>/page.tsx chapter page ("use client"; data + composition)
app/<ch>/viz.tsx visualizations specific to this chapter
app/<ch>/chapter.css styles specific to this chapter (imported by page.tsx)
lib/<ch>-data.tsx this chapter's PROBLEMS + QUIZ data
lib/<ch>-problems.tsx this chapter's PROBLEMS (the atlas imports these too)
lib/<ch>-quiz.tsx this chapter's QUIZ (kept apart so the atlas does not load it)
```

Each chapter's palette comes free from `<main className="page" data-ch="<id>">`
Expand Down
3 changes: 2 additions & 1 deletion app/advanced/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ import { CodeTabs, CodeBlock } from "@/lib/code";
import { ArrayStepper, type ArrayFrame } from "@/lib/stepper";
import { ProblemSet } from "@/lib/problems";
import { Quiz } from "@/lib/quiz";
import { PROBLEMS, QUIZ } from "@/lib/advanced-data";
import { PROBLEMS } from "@/lib/advanced-problems";
import { QUIZ } from "@/lib/advanced-quiz";
import { T } from "@/lib/i18n";
import {
LRUAnatomy,
Expand Down
3 changes: 2 additions & 1 deletion app/array/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import { CodeTabs } from "@/lib/code";
import { ArrayStepper, type ArrayFrame } from "@/lib/stepper";
import { ProblemSet } from "@/lib/problems";
import { Quiz } from "@/lib/quiz";
import { PROBLEMS, QUIZ } from "@/lib/array-data";
import { PROBLEMS } from "@/lib/array-problems";
import { QUIZ } from "@/lib/array-quiz";
import { T } from "@/lib/i18n";
import { IndexLab, ShiftLab, GrowLab, MatrixLab } from "./viz";

Expand Down
26 changes: 13 additions & 13 deletions app/atlas/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ import { CHAPTERS, type ChapterId } from "@/lib/curriculum";
import { useL, T, type Loc } from "@/lib/i18n";
import { DecisionLab } from "./viz";

import { PROBLEMS as P_ARRAY } from "@/lib/array-data";
import { PROBLEMS as P_STRING } from "@/lib/string-data";
import { PROBLEMS as P_LIST } from "@/lib/linked-list-data";
import { PROBLEMS as P_STACK } from "@/lib/stack-data";
import { PROBLEMS as P_QUEUE } from "@/lib/queue-data";
import { PROBLEMS as P_HASH } from "@/lib/hash-data";
import { PROBLEMS as P_BTREE } from "@/lib/binary-tree-data";
import { PROBLEMS as P_BST } from "@/lib/bst-data";
import { PROBLEMS as P_HEAP } from "@/lib/heap-data";
import { PROBLEMS as P_TRIE } from "@/lib/trie-data";
import { PROBLEMS as P_UF } from "@/lib/union-find-data";
import { PROBLEMS as P_GRAPH } from "@/lib/graph-data";
import { PROBLEMS as P_ADV } from "@/lib/advanced-data";
import { PROBLEMS as P_ARRAY } from "@/lib/array-problems";
import { PROBLEMS as P_STRING } from "@/lib/string-problems";
import { PROBLEMS as P_LIST } from "@/lib/linked-list-problems";
import { PROBLEMS as P_STACK } from "@/lib/stack-problems";
import { PROBLEMS as P_QUEUE } from "@/lib/queue-problems";
import { PROBLEMS as P_HASH } from "@/lib/hash-problems";
import { PROBLEMS as P_BTREE } from "@/lib/binary-tree-problems";
import { PROBLEMS as P_BST } from "@/lib/bst-problems";
import { PROBLEMS as P_HEAP } from "@/lib/heap-problems";
import { PROBLEMS as P_TRIE } from "@/lib/trie-problems";
import { PROBLEMS as P_UF } from "@/lib/union-find-problems";
import { PROBLEMS as P_GRAPH } from "@/lib/graph-problems";
import { PROBLEMS as P_ADV } from "@/lib/advanced-problems";

/* ---------- Course-wide problem set groups ---------- */

Expand Down
3 changes: 2 additions & 1 deletion app/binary-tree/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import {
import { CodeTabs } from "@/lib/code";
import { ProblemSet } from "@/lib/problems";
import { Quiz } from "@/lib/quiz";
import { PROBLEMS, QUIZ } from "@/lib/binary-tree-data";
import { PROBLEMS } from "@/lib/binary-tree-problems";
import { QUIZ } from "@/lib/binary-tree-quiz";
import { T } from "@/lib/i18n";
import {
TermTree,
Expand Down
3 changes: 2 additions & 1 deletion app/bst/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ import { ArrayStepper, type ArrayFrame } from "@/lib/stepper";
import { ProblemSet } from "@/lib/problems";
import { Quiz } from "@/lib/quiz";
import { T, type Loc } from "@/lib/i18n";
import { PROBLEMS, QUIZ } from "@/lib/bst-data";
import { PROBLEMS } from "@/lib/bst-problems";
import { QUIZ } from "@/lib/bst-quiz";
import {
BSTLab,
InorderFig,
Expand Down
3 changes: 2 additions & 1 deletion app/graph/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import {
import { CodeTabs } from "@/lib/code";
import { ProblemSet } from "@/lib/problems";
import { Quiz } from "@/lib/quiz";
import { PROBLEMS, QUIZ } from "@/lib/graph-data";
import { PROBLEMS } from "@/lib/graph-problems";
import { QUIZ } from "@/lib/graph-quiz";
import { T } from "@/lib/i18n";
import {
TermGraph,
Expand Down
3 changes: 2 additions & 1 deletion app/hash/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import { CodeTabs } from "@/lib/code";
import { ArrayStepper, type ArrayFrame } from "@/lib/stepper";
import { ProblemSet } from "@/lib/problems";
import { Quiz } from "@/lib/quiz";
import { PROBLEMS, QUIZ } from "@/lib/hash-data";
import { PROBLEMS } from "@/lib/hash-problems";
import { QUIZ } from "@/lib/hash-quiz";
import { T } from "@/lib/i18n";
import { HashLab, CollisionLab } from "./viz";
import "./chapter.css";
Expand Down
3 changes: 2 additions & 1 deletion app/heap/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ import { CodeTabs } from "@/lib/code";
import { ArrayStepper, type ArrayFrame } from "@/lib/stepper";
import { ProblemSet } from "@/lib/problems";
import { Quiz } from "@/lib/quiz";
import { PROBLEMS, QUIZ } from "@/lib/heap-data";
import { PROBLEMS } from "@/lib/heap-problems";
import { QUIZ } from "@/lib/heap-quiz";
import { T } from "@/lib/i18n";
import { HeapLab, HeapMapFig } from "./viz";

Expand Down
3 changes: 2 additions & 1 deletion app/linked-list/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ import {
import { CodeTabs } from "@/lib/code";
import { ProblemSet } from "@/lib/problems";
import { Quiz } from "@/lib/quiz";
import { PROBLEMS, QUIZ } from "@/lib/linked-list-data";
import { PROBLEMS } from "@/lib/linked-list-problems";
import { QUIZ } from "@/lib/linked-list-quiz";
import { T } from "@/lib/i18n";
import { ScatterMap, LinkedLab, ReverseAnim, CycleAnim, MergeAnim } from "./viz";
import "./chapter.css";
Expand Down
3 changes: 2 additions & 1 deletion app/queue/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ import { CodeTabs } from "@/lib/code";
import { ArrayStepper, type ArrayFrame } from "@/lib/stepper";
import { ProblemSet } from "@/lib/problems";
import { Quiz } from "@/lib/quiz";
import { PROBLEMS, QUIZ } from "@/lib/queue-data";
import { PROBLEMS } from "@/lib/queue-problems";
import { QUIZ } from "@/lib/queue-quiz";
import { T } from "@/lib/i18n";
import { QueueMemFig, RingLab, TwoStackPour } from "./viz";

Expand Down
3 changes: 2 additions & 1 deletion app/stack/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import { CodeTabs } from "@/lib/code";
import { ArrayStepper, type ArrayFrame } from "@/lib/stepper";
import { ProblemSet } from "@/lib/problems";
import { Quiz } from "@/lib/quiz";
import { PROBLEMS, QUIZ } from "@/lib/stack-data";
import { PROBLEMS } from "@/lib/stack-problems";
import { QUIZ } from "@/lib/stack-quiz";
import { T } from "@/lib/i18n";
import { StackMemFig, StackLab, CallStackDemo } from "./viz";

Expand Down
3 changes: 2 additions & 1 deletion app/string/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ import { ArrayStepper, type ArrayFrame } from "@/lib/stepper";
import { ProblemSet } from "@/lib/problems";
import { Quiz } from "@/lib/quiz";
import { T, useL } from "@/lib/i18n";
import { PROBLEMS, QUIZ } from "@/lib/string-data";
import { PROBLEMS } from "@/lib/string-problems";
import { QUIZ } from "@/lib/string-quiz";
import { EncodeLab, ConcatLab } from "./viz";
import "./chapter.css";

Expand Down
3 changes: 2 additions & 1 deletion app/trie/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import {
import { CodeTabs } from "@/lib/code";
import { ProblemSet } from "@/lib/problems";
import { Quiz } from "@/lib/quiz";
import { PROBLEMS, QUIZ } from "@/lib/trie-data";
import { PROBLEMS } from "@/lib/trie-problems";
import { QUIZ } from "@/lib/trie-quiz";
import { T } from "@/lib/i18n";
import {
TrieLab,
Expand Down
3 changes: 2 additions & 1 deletion app/union-find/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ import { CodeTabs } from "@/lib/code";
import { ArrayStepper, type ArrayFrame } from "@/lib/stepper";
import { ProblemSet } from "@/lib/problems";
import { Quiz } from "@/lib/quiz";
import { PROBLEMS, QUIZ } from "@/lib/union-find-data";
import { PROBLEMS } from "@/lib/union-find-problems";
import { QUIZ } from "@/lib/union-find-quiz";
import { T } from "@/lib/i18n";
import { UFLab } from "./viz";
import "./chapter.css";
Expand Down
Loading
Loading