Build a local-first LeetCode + DSA Learning + Revision + Coding + Debugging + Algorithm Visualization IDE.
It must let the user:
- Browse LeetCode problems #1–#1000.
- Open a complete problem page.
- Read description, examples, constraints, hints, follow-ups and topics.
- Study multiple approaches with complexity comparison.
- Write Java or Python in a Monaco/VS Code-like editor.
- Compile and run Java locally.
- Syntax-check and run Python locally.
- Create and run custom test cases.
- Save code, notes, attempts and revision state.
- Debug code step-by-step.
- Highlight the executing line.
- Show variables and call stack.
- Animate data structures and algorithm state.
- Track solved/reviewed/mastered problems.
- Schedule spaced revision.
- Work offline for cached problem data and user data.
- Optionally use AI for explanations/hints/optimization, without making AI mandatory.
The finished product should feel like:
LeetCode + VS Code + IntelliJ Debugger + Algorithm Visualizer + Personal DSA Revision Notebook.
If problem loading fails, never show:
[]
Show a useful error with the sources attempted.
The existing #1–#1000 problem loader is working. Do not replace it with a simpler implementation.
Every major change must continue to pass:
GET /api/problems?max=1000
and return a non-empty list.
Java/Python execution must be local by default.
Do not make an online compiler the core dependency.
Do not fake debugging with source-code text parsing.
Python should use a real tracing mechanism such as sys.settrace.
Java should use JDI/JDWP or another real JVM debugging mechanism.
Animations must be driven by execution state/trace events, not fake pre-recorded animations.
User code must have:
- timeout
- output limit
- temporary workspace
- process cleanup
- no access to application secrets
- no unrestricted access to application source files
Do not build everything in one giant file.
Implement one subsystem, test it, then move forward.
- React
- TypeScript
- Vite
- Monaco Editor
- Tailwind CSS
- Framer Motion
- Lucide React
- React Router
- Zustand or Redux Toolkit
- TanStack Query
- Node.js
- TypeScript
- Express or Fastify
Preferred:
- SQLite
- Prisma
Use localStorage only for lightweight preferences/cache where appropriate.
Java:
- JDK 17+
javacjava
Python:
- Python 3.10+
Python:
sys.settrace
Java:
- JDI/JDWP/debug agent
Use a proper multi-file architecture.
leetcode-revision-lab/
│
├── client/
│ ├── src/
│ │ ├── app/
│ │ ├── pages/
│ │ ├── components/
│ │ ├── features/
│ │ │ ├── problems/
│ │ │ ├── editor/
│ │ │ ├── compiler/
│ │ │ ├── debugger/
│ │ │ ├── visualizer/
│ │ │ ├── revision/
│ │ │ ├── notes/
│ │ │ ├── attempts/
│ │ │ └── dashboard/
│ │ ├── hooks/
│ │ ├── stores/
│ │ ├── lib/
│ │ ├── types/
│ │ └── utils/
│ └── public/
│
├── server/
│ └── src/
│ ├── routes/
│ ├── services/
│ │ ├── problemService/
│ │ ├── compiler/
│ │ ├── runner/
│ │ ├── debugger/
│ │ └── testcase/
│ ├── parsers/
│ ├── middleware/
│ └── utils/
│
├── prisma/
│ └── schema.prisma
│
├── data/
│ ├── problems/
│ ├── cache/
│ └── seed/
│
├── scripts/
│ ├── fetchProblems
│ ├── seedDatabase
│ └── validateDataset
│
└── README.md
Do not create one huge HTML/JS file.
The application must support:
Problem #1
Problem #2
...
Problem #1000
Problem data should be downloaded/normalized once and cached locally.
Startup:
SQLite/cache
↓
if data exists → use immediately
↓
if empty → download/seed
↓
validate
↓
save locally
Never download all rich descriptions on every page load.
interface Problem {
id: number;
title: string;
slug: string;
difficulty: "Easy" | "Medium" | "Hard";
description: string;
examples: Example[];
constraints: string[];
followUp?: string;
hints: string[];
topics: string[];
companies?: string[];
acceptanceRate?: number;
starterCode?: {
java?: string;
python?: string;
};
leetcodeUrl: string;
approaches: Approach[];
visualizationTypes?: VisualizationType[];
}
interface Example {
input: string;
output: string;
explanation?: string;
}
interface Approach {
name: string;
intuition: string;
explanation: string;
timeComplexity: string;
spaceComplexity: string;
code?: {
java?: string;
python?: string;
};
pros: string[];
cons: string[];
}
Main route:
/problems
Desktop layout:
┌──────────────────────────────────────────────────────────────┐
│ Search problems... Difficulty Topic Status │
├────────────┬─────────────────────────────────────────────────┤
│ Dashboard │ #1 Two Sum Easy │
│ Problems │ Array · HashMap │
│ Revision │ ✓ Solved ★ Favorite │
│ Favorites │ │
│ Notes │ #2 Add Two Numbers Medium │
│ Settings │ Linked List │
└────────────┴─────────────────────────────────────────────────┘
Features:
- search by number
- search by title
- search by topic
- keyword search
- difficulty filter
- topic filter
- solved filter
- reviewed filter
- favorites filter
- needs-revision filter
- sort
- random problem
- random unsolved
- random revision
Virtualize large lists.
Each card:
#713
Subarray Product Less Than K
Medium
Sliding Window
✓ Solved
↻ Revision Due
★ Favorite
[Open Problem]
Use subtle hover/entrance animations.
Route:
/problems/:id
Desktop:
┌───────────────────────────────────────────────────────────────────┐
│ #1 Two Sum Easy ★ Open on LeetCode │
├──────────────────────────────┬────────────────────────────────────┤
│ PROBLEM │ EDITOR │
│ │ │
│ Description │ Java | Python │
│ Examples │ │
│ Constraints │ Monaco Editor │
│ Hints │ │
│ Approaches │ │
│ Notes │ │
├──────────────────────────────┴────────────────────────────────────┤
│ Tests | Console | Debugger | Visualization │
└───────────────────────────────────────────────────────────────────┘
On mobile:
Problem
Code
Tests
Debugger
Visualize
Show:
- problem number
- title
- difficulty
- description
- examples
- explanations
- constraints
- follow-up
- topics
- LeetCode link
Use Markdown rendering.
Example UI:
Example 1
Input:
nums = [2,7,11,15], target = 9
Output:
[0,1]
Explanation:
nums[0] + nums[1] = 9.
Buttons:
Run Example
Copy Input
Show constraints clearly.
Example:
Constraints
• 2 <= nums.length <= 10^4
• -10^9 <= nums[i] <= 10^9
Hints hidden by default.
Hint 1
Think about what information needs to be remembered.
Hint 2
Can extra O(n) space reduce the time complexity?
Hint 3
Use a HashMap.
Do not immediately reveal the complete solution.
For each problem where meaningful, provide:
Brute Force
Time: O(n²)
Space: O(1)
Better
Time: O(n log n)
Space: O(n)
Optimal
Time: O(n)
Space: O(n)
Each approach includes:
- intuition
- algorithm
- correctness idea
- complexity
- edge cases
- pros
- cons
- Java code
- Python code
Display:
┌──────────────┬──────────┬──────────┬────────────┐
│ Approach │ Time │ Space │ Notes │
├──────────────┼──────────┼──────────┼────────────┤
│ Brute Force │ O(n²) │ O(1) │ Simple │
│ Sorting │ O(nlogn) │ O(n) │ Better │
│ HashMap │ O(n) │ O(n) │ Optimal │
└──────────────┴──────────┴──────────┴────────────┘
Use Monaco Editor.
Required:
- Java syntax highlighting
- Python syntax highlighting
- line numbers
- minimap
- bracket matching
- autocomplete
- indentation
- code folding
- find
- replace
- multi-cursor
- error markers
- current-line highlighting
- keyboard shortcuts
- dark VS Code-like theme
[ Java ] [ Python ]
Keep independent source code for each language.
Switching languages must not destroy code.
Autosave code.
Use:
class Solution {
public int[] twoSum(int[] nums, int target) {
}
}
Allow complete programs:
public class Main {
public static void main(String[] args) {
}
}
Python:
def main():
pass
if __name__ == "__main__":
main()
Backend:
POST /api/execute
Request:
{
"language": "java",
"code": "...",
"input": "..."
}
Use a temporary directory:
temp/session-id/Main.java
Compile:
javac Main.java
Run:
java Main
Return:
{
"success": true,
"stdout": "...",
"stderr": "",
"exitCode": 0,
"duration": 12
}
First compile-check:
python -m py_compile main.py
Then:
python main.py
Capture:
- stdout
- stderr
- exit code
- runtime
Set defaults:
Maximum runtime: 5 seconds
Maximum output: 1 MB
Maximum debug events: 10,000
Kill runaway processes.
Clean temporary files.
Do not expose environment secrets.
Endpoint:
GET /api/system/status
Response:
{
"node": true,
"java": true,
"javac": true,
"python": true
}
Settings should show:
Environment
✓ Node
✓ Java
✓ javac
✓ Python
If missing, explain exactly how to install/configure it.
Bottom panel:
Tests
[Example 1] [Example 2] [Custom +]
Each testcase:
Input
Expected
Actual
Status
Buttons:
Run
Run All
Add
Duplicate
Delete
Allow arbitrary user input.
Example:
Input:
[2,7,11,15]
9
Expected:
[0,1]
Output:
Actual:
[0,1]
✓ Passed
Save recent testcases per problem.
Record:
- input
- expected
- actual
- status
- language
- timestamp
Show:
✓ Program finished
Output:
[0,1]
Time:
4ms
Exit code:
0
For errors:
Runtime Error
NullPointerException
at Main.java:18
Map compiler errors to Monaco lines.
Example:
Line 14:
Type mismatch
Clicking error moves editor to that line.
Core controls:
▶ Run
⏸ Pause
⏭ Step
↶ Previous
↻ Restart
⏹ Stop
Speed:
0.25x
0.5x
1x
2x
4x
┌───────────────────────────────────────────────────────────────┐
│ CODE VARIABLES │
│ │
│ 1 int left = 0; left = 0 │
│ 2 int right = 6; right = 6 │
│ 3 int mid = ...; ← mid = 3 │
│ 4 if (...) target = 9 │
│ │
├───────────────────────────────────────────────────────────────┤
│ CALL STACK VISUALIZATION │
│ │
│ binarySearch() [1][3][5][7][9][11][13] │
│ ↑ ↑ │
│ L MID │
└───────────────────────────────────────────────────────────────┘
Create structured trace events:
interface TraceEvent {
step: number;
type:
| "line"
| "call"
| "return"
| "assignment"
| "condition"
| "loop"
| "exception";
file: string;
line: number;
variables: VariableState[];
callStack: StackFrame[];
visualization?: VisualizationState;
}
interface VariableState {
name: string;
type: string;
value: unknown;
previousValue?: unknown;
}
Animate changes:
left
0 → 1
Use a real Python trace mechanism such as:
sys.settrace(...)
Capture:
- line
- call
- return
- locals
- exception
Generate a deterministic trace.
Use:
- JDI
- JDWP
- debugger agent
Do NOT parse Java source to pretend it is executing.
Capture:
- current line
- local variables
- method calls
- method returns
- exceptions
- call stack
Generate trace once:
Program
↓
Trace
↓
Step 0
Step 1
Step 2
...
Then support:
Previous
Next
Jump to step
Play
Pause
Replay
No need to rerun for every Next/Previous.
Example recursion:
CALL STACK
factorial(4)
factorial(3)
factorial(2)
factorial(1) ← current
Each frame:
function: factorial
n: 1
Animate push/pop.
Represent arrays:
[ 2 ][ 7 ][ 11 ][ 15 ]
↑ ↑
left right
Recognize pointer variables such as:
- left
- right
- slow
- fast
- mid
- i
- j
- current
- min
- max
Allow explicit visualization metadata when automatic inference is ambiguous.
HashMap
key value
2 0
7 1
11 2
Animate:
- insert
- update
- lookup
- delete
Set
{ 2, 5, 7, 10 }
Show:
contains(7)
→ FOUND ✓
┌─────┐
│ 9 │ ← TOP
├─────┤
│ 7 │
├─────┤
│ 3 │
└─────┘
Animate push/pop/peek.
FRONT → [2][5][7][9] ← REAR
Animate enqueue/dequeue.
HEAD
↓
[1] → [2] → [3] → [4] → null
↑
cur
Animate pointer changes.
Example:
8
/ 4 12
/ \ / 2 6 10 14
Highlight:
- current
- visited
- left
- right
- parent
Support:
- DFS
- BFS
- BST operations
Example:
A
/ B C
| |
D---E
Show:
- current node
- visited
- frontier
- queue
- stack
- path
- edges
Support BFS/DFS/shortest-path visual states.
Show:
2
/ 4 7
/ 8 9
Array:
[2,4,7,8,9]
Animate:
- insert
- remove
- heapify
- swaps
[1][2][3][4][5][6][7]
↑ ↑
L R
Animate pointer movement.
[1][2][3][4][5][6]
┌──────────────┐
│ WINDOW │
└──────────────┘
L R
Show:
- expansion
- shrinking
- current sum/product
- best answer
[1][3][5][7][9][11][13]
↑ ↑ ↑
L MID R
At every step explain:
nums[mid] = 7
target = 9
7 < 9
Move:
left = mid + 1
Animate pointer movement.
Support:
- Bubble Sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort
- Heap Sort
Show:
5 2 8 1 3
Compare:
5 ↔ 2
Swap:
2 5 8 1 3
Use animated bars and values.
For:
factorial(4)
show:
factorial(4)
↓
factorial(3)
↓
factorial(2)
↓
factorial(1)
↓
1
↑
return 2
↑
return 6
↑
return 24
Also show recursion tree where appropriate.
Support:
- 1D DP
- 2D DP
- memoization
- tabulation
Example:
j →
0 1 2 3 4
0 0 0 0 0 0
1 0 1 1 1 1
2 0 1 2 2 2
↑
i
Animate each cell.
Show formula for current transition.
Example:
[]
/ | [1] [2] [3]
/ [1,2] [1,3]
Show:
- choose
- recurse
- undo
- backtrack
- current path
Show:
1 2 3 4 5
union(1,2)
1
└──2
union(2,3)
1
└──2
└──3
Also parent array and path compression.
For:
cat
car
can
show:
root
|
c
|
a
/|t r n
Animate insertion/search.
Example:
0 5 10 15 20
───────
───────────
───────
Highlight:
- overlap
- merge
- current interval
- removal
At each step show a human-readable explanation.
Example:
CURRENT STEP
mid = 3
nums[mid] = 7
target = 9
7 < 9.
Because the array is sorted, everything
before index 3 is also too small.
Therefore:
left = mid + 1
Update dynamically from trace metadata.
Always show:
Time: O(n)
Space: O(n)
For multiple approaches, show comparison.
type VisualizationType =
| "array"
| "two-pointer"
| "sliding-window"
| "binary-search"
| "sorting"
| "stack"
| "queue"
| "linked-list"
| "tree"
| "bst"
| "graph"
| "heap"
| "recursion"
| "dp-1d"
| "dp-2d"
| "backtracking"
| "union-find"
| "trie"
| "interval"
| "generic";
Problems can have multiple visualization types:
{
"id": 713,
"visualizationTypes": [
"sliding-window",
"array"
]
}
If no specialized visualization exists, always show:
- current line
- variables
- call stack
- execution timeline
Never claim arbitrary source code can be perfectly visualized.
Store verified algorithm patterns.
Examples:
#1 Two Sum
→ HashMap
#704 Binary Search
→ Binary Search
#695 Max Area of Island
→ DFS/BFS
#713 Subarray Product Less Than K
→ Sliding Window
#630 Course Schedule III
→ Greedy + Heap
Do not depend on runtime AI to determine patterns.
Every problem gets personal notes.
Example:
Pattern:
Sliding Window
Important:
When product >= k, shrink from left.
My mistake:
Forgot k <= 1.
Autosave.
Save attempts:
Attempt #4
Language:
Java
Result:
Wrong Answer
Date:
13 Aug 2026
Runtime:
4ms
Allow reopening old code.
Record:
- problem
- language
- code
- result
- runtime
- memory if available
- timestamp
Statuses:
Passed
Wrong Answer
Compile Error
Runtime Error
Timeout
States:
Unseen
Attempted
Solved
Reviewed
Needs Revision
Mastered
Manual state changes must always be possible.
Automatic suggestions are allowed.
When solved:
Today
↓
Tomorrow
↓
3 days
↓
7 days
↓
14 days
↓
30 days
Dashboard:
Revision Due Today
12 problems
Allow confidence rating:
1 = Don't remember
2 = Weak
3 = Okay
4 = Strong
5 = Mastered
Use confidence to influence scheduling.
Main dashboard:
Good evening 👋
Solved 137
Reviewed 82
Mastered 31
Revision Due 12
Current Streak 7
Charts:
- solved by day
- difficulty distribution
- topic distribution
- success rate
- average attempts
- revision activity
Example:
Arrays 78 / 120
Strings 42 / 80
Linked Lists 21 / 50
Trees 32 / 90
Graphs 18 / 70
DP 14 / 80
Two Pointers 14 solved
Sliding Window 9 solved
Binary Search 12 solved
DFS 18 solved
BFS 11 solved
Greedy 8 solved
Heap 6 solved
DP 5 solved
Backtracking 4 solved
Union Find 3 solved
Trie 2 solved
Daily session:
1 Easy
1 Medium
1 Hard
Prioritize:
- due revisions
- weak patterns
- unsolved problems
Support:
Random
Random Easy
Random Medium
Random Hard
Random Unsolved
Random Revision
Random Topic
Star problems.
Route:
/favorites
Search personal notes:
Search notes...
Example:
"shrink window"
→ #713
→ #76
→ #209
Keyboard:
Ctrl + Shift + P
Commands:
Open Problem
Random Problem
Run Code
Run Tests
Start Debugging
Next Step
Previous Step
Restart Debugger
Stop Debugger
Toggle Visualization
Toggle Notes
Mark Solved
Mark Reviewed
Add Testcase
Ctrl + Enter Run
Ctrl + Shift + Enter Run All
F5 Continue
F10 Step
Shift + F11 Previous
F6 Restart
Esc Stop/Close
Ctrl + S Save
Ctrl + P Problem search
Space Play/Pause
→ Next trace step
← Previous trace step
Settings page:
Editor
Font Size
Tab Size
Minimap
Word Wrap
Theme
Debugger
Animation Speed
Max Trace Events
Auto Scroll
Execution
Java Path
Python Path
Timeout
Auto-detect Java/Python.
After data is cached, the app must still support:
- browsing
- problem descriptions
- examples
- saved code
- notes
- favorites
- revision state
- attempts
Internet should only be required for:
- dataset refresh
- optional AI
- external LeetCode page
Problems:
GET /api/problems
GET /api/problems/:id
GET /api/problems/search?q=
Execution:
POST /api/execute
POST /api/test
Debugger:
POST /api/debug/trace
POST /api/debug/start
POST /api/debug/stop
System:
GET /api/system/status
POST /api/debug/trace
Request:
{
"language": "python",
"code": "...",
"input": "..."
}
Response:
{
"success": true,
"events": [
{
"step": 0,
"type": "line",
"line": 2,
"variables": {
"left": 0,
"right": 6
}
}
]
}
Never silently fail.
Bad:
Problem list empty.
Good:
Problem dataset unavailable.
Sources attempted:
- local database
- GitHub dataset
- LeetCode metadata
- GraphQL
Reason:
...
Compile errors should include:
- compiler message
- file
- line
- column if available
Runtime errors should include:
- exception
- stack trace
- line
Create:
npm run validate-data
Validate:
- IDs 1–1000
- duplicate IDs
- missing titles
- missing slugs
- valid difficulty
- examples
- constraints
- JSON integrity
- starter code
Expected:
✓ 1000 problems checked
✓ 0 duplicate IDs
✓ 0 invalid records
Requirements:
- virtualize 1000-problem list
- lazy-load Monaco
- lazy-load visualizers
- debounce search
- memoize visualization state
- avoid rerendering unrelated panels
- cache problem data
- paginate/search efficiently
Desktop is primary.
Mobile:
Problem
↓
Code
↓
Tests
↓
Debugger
↓
Visualization
Use tabs/drawers.
Dark-first developer-tool aesthetic.
Colors:
Background: #070A11
Panel: #101624
Secondary: #151D2D
Border: #273247
Primary: violet
Secondary: cyan
Success: green
Warning: amber
Error: red
Use:
- clean typography
- subtle gradients
- rounded panels
- restrained shadows
- high contrast
Avoid excessive neon/glassmorphism.
Use Framer Motion where useful.
Animate:
- cards
- tabs
- panels
- array swaps
- pointer movement
- variable changes
- tree operations
- stack push/pop
- queue operations
- DP cell updates
- debugger line transitions
Respect:
prefers-reduced-motion
Support:
- keyboard navigation
- focus indicators
- high contrast
- screen-reader labels
- reduced motion
- status indicators that are not color-only
AI must be optional.
If configured, provide:
- explain problem
- explain code
- generate hints
- find bug
- optimize code
- generate testcases
- explain debugger step
- compare approaches
Use an abstraction:
AIProvider
├── OpenAI
├── Local Model
└── Other Provider
Never hardcode API keys.
The application must work without AI.
Button:
Explain Code
Output:
1. Initialization
2. Main loop
3. Condition
4. State update
5. Return
Connect explanation to the debugger trace where possible.
Optional AI feature.
Example:
Current:
O(n²)
Potential:
O(n)
Bottleneck:
Nested loop at line 18
Suggestion:
Use a HashMap.
Implement and stabilize:
- React + TypeScript
- Node backend
- SQLite
- existing #1–#1000 loader
- problem list
- search/filter
- complete problem page
Acceptance:
#1
#100
#500
#1000
all open.
Implement:
- Monaco
- Java
- Python
- starter code
- local Java compiler
- local Python runner
- custom testcases
- output
- errors
Acceptance:
Open #1
Write Java
Compile
Run
See result
Implement:
- solved
- reviewed
- favorites
- notes
- attempts
- submission history
- revision queue
- dashboard
- spaced repetition
Implement:
- Python tracing
- Java JDI/JDWP
- trace format
- current-line highlighting
- variables
- call stack
- step
- previous
- play/pause
- restart
Minimum acceptance:
Binary Search can be stepped line-by-line while:
leftrightmid
change visibly.
Implement in this order:
- Array
- Two Pointer
- Sliding Window
- Binary Search
- Stack
- Queue
- Linked List
- Recursion
- Tree
- Heap
- Graph
- DP
- Sorting
- Backtracking
- Union Find
- Trie
- Interval
- AI
- command palette
- advanced analytics
- smarter spaced repetition
- pattern recommendations
- optimization analysis
Examples:
{
"id": 704,
"visualizationTypes": ["binary-search", "array"]
}
{
"id": 713,
"visualizationTypes": ["sliding-window", "array"]
}
{
"id": 206,
"visualizationTypes": ["linked-list"]
}
{
"id": 70,
"visualizationTypes": ["dp-1d", "recursion"]
}
The ideal flow:
Open #704 Binary Search
↓
Read problem
↓
See examples
↓
Think
↓
Write Java
↓
Run testcase
↓
Wrong Answer
↓
Start Debugger
↓
Step
↓
Current line highlighted
↓
Variables update
↓
Array visualization updates
↓
Understand bug
↓
Fix code
↓
Run all tests
↓
Passed
↓
Compare approaches
↓
Save note
↓
Mark Reviewed
↓
Schedule Revision
The project is not complete until these work:
- Problems #1–#1000 load
- Search
- Difficulty filter
- Topic filter
- Status filter
- Favorites
- Random
- Complete problem details
- Examples
- Constraints
- Hints
- Follow-up
- LeetCode link
- Multiple approaches
- Monaco
- Java
- Python
- Language switching
- Autosave
- Starter code
- Program mode
- LeetCode mode
- Local Java compilation
- Local Java execution
- Python compile check
- Python execution
- Custom input
- Run all tests
- stdout
- stderr
- exit code
- timeout
- output limit
- Python trace
- Java debugger
- Current line
- Variables
- Call stack
- Step
- Previous
- Continue
- Pause
- Restart
- Stop
- Deterministic replay
- Array
- Two pointer
- Sliding window
- Binary search
- Stack
- Queue
- Linked list
- Tree
- Graph
- Heap
- Recursion
- DP
- Sorting
- Backtracking
- Union Find
- Trie
- Interval
- Solved
- Reviewed
- Mastered
- Needs revision
- Notes
- Favorites
- Attempts
- Submission history
- Revision queue
- Spaced repetition
- Confidence rating
- Dashboard
- No silent empty dataset
- Cached problems
- Offline browsing
- Environment detection
- Error messages
- Safe code execution
- Responsive UI
- Accessibility
- Reduced-motion support
Before every release:
GET /api/problems?max=1000
must return non-empty data.
Verify:
#1
#100
#500
#1000
Then:
Open problem
→ load details
→ editor
→ execute
→ save
→ refresh browser
→ data remains
Never ship a version that regresses the working problem loader.
Build this specification incrementally.
For every feature:
- Inspect existing code.
- Preserve working features.
- Implement the smallest complete subsystem.
- Run backend tests.
- Run frontend tests/build.
- Test the actual UI.
- Verify problem loading.
- Verify Java/Python execution where relevant.
- Fix errors.
- Only then proceed.
Do not respond with a fake "implemented" status when the feature has not been tested.
Do not replace working functionality with mock data unless explicitly required.
Do not use placeholder buttons that appear functional but do nothing.
If a feature cannot yet be implemented, show a clear disabled state rather than silently failing.
The final application should be production-quality, modular, maintainable, and genuinely useful for DSA learning.