Select Problem18+ Problems
Freeform WorkspaceJavaScript
DSA Playbook
No problem is selected. Write freeform JavaScript in the editor, or choose from 18+ LeetCode-style algorithm challenges.
Custom Test Cases
Target: sumTo() · 2 cases
#1: [5,2,4] → [2,4,5]
#2: [10,-1,3] → [-1,3,10]
Ready to practice algorithms?
Select a challenge to load problem specifications, test cases, and time/space constraints.
Popular Challenges
Two Sum
Arrays & Hashing
Valid Parentheses
Stack
Binary Search
Binary Search
Maximum Subarray
Dynamic Programming
Best Time to Buy Stock
Sliding Window
Pre-loaded Data Structures
ListNode, TreeNode, MinHeap, MaxHeap, Queue are globally available in your editor without imports.JavaScript(ES2022)
13.5px
Ctrl+↵ to runInitializing Monaco IDE Engine...
Keys
Console output appears here when executed. Press Ctrl+↵ or click Run.