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
Easy
Valid Parentheses
Stack
Easy
Binary Search
Binary Search
Easy
Maximum Subarray
Dynamic Programming
Medium
Best Time to Buy Stock
Sliding Window
Easy
Pre-loaded Data Structures
ListNode, TreeNode, MinHeap, MaxHeap, Queue are globally available in your editor without imports.
JavaScript(ES2022)
13.5px
Ctrl+↵ to run
Initializing Monaco IDE Engine...
Keys
Console output appears here when executed. Press Ctrl+↵ or click Run.