WorkspacePlayground
PUT YOUR IDEAS TO WORK

Your coding playground.

Choose a challenge, write JavaScript, and test it in an isolated runtime.

JavaScript, ready to run. Your drafts stay in this browser. Reference solutions stay hidden until you ask.
51 problemsLEARN · VISUALIZE · PRACTICE
01
Longest Substring Without Repeating Charactersstrings · sliding window
Medium Try it
02
Two Sumarrays · hashmap
Easy Try it
03
Binary Searcharrays · binary search
Easy Try it
04
Valid Parenthesesstrings · stack
Easy Try it
05
Reverse Linked Listlinked list
Easy Try it
06
Maximum Depth of Binary Treetrees · recursion
Easy Try it
07
Number of Islandsgraphs · dfs
Medium Try it
08
Coin Changedynamic programming
Medium Try it
09
Valid Palindrometwo pointers · strings
Easy Try it
10
Move Zeroesarrays · two pointers
Easy Try it
11
Range Sum Queriesprefix sum · arrays
Easy Try it
12
Daily Temperaturesstack · arrays
Medium Try it
13
Generate Parenthesesbacktracking · recursion
Medium Try it
14
Subsetsbacktracking · recursion
Medium Try it
15
Binary Tree Inorder Traversaltrees · stack
Easy Try it
16
Validate Binary Search Treebinary search tree · trees
Medium Try it
17
Kth Largest Elementheap priority queue · arrays
Medium Try it
18
Find if Path Existsdfs · graphs
Easy Try it
19
Course Scheduletopological sort · graphs
Medium Try it
20
Shortest Path in a Gridbfs · shortest path
Medium Try it
21
Climbing Stairsdynamic programming
Easy Try it
22
House Robberdynamic programming · arrays
Medium Try it
23
Merge Intervalsintervals · sorting
Medium Try it
24
Single Numberbit manipulation · arrays
Easy Try it
25
Contains Duplicatehashset · arrays
Easy Try it
26
Valid Anagramhashmap · strings
Easy Try it
27
Container With Most Watertwo pointers · arrays
Medium Try it
28
Maximum Sum of Size Ksliding window · arrays
Easy Try it
29
Find Pivot Indexprefix sum · arrays
Easy Try it
30
Search Insert Positionbinary search · arrays
Easy Try it
31
Next Greater Elementstack · arrays
Medium Try it
32
Permutationsbacktracking · arrays
Medium Try it
33
Counting Bitsbit manipulation · arrays
Easy Try it
34
Jump Gamegreedy · arrays
Medium Try it
35
Longest Increasing Subsequencedynamic programming · arrays
Medium Try it
36
Insertion Sortsorting · arrays
Easy Try it
37
Squares of a Sorted Arraytwo pointers · arrays
Easy Try it
38
Minimum Size Subarray Sumsliding window · arrays
Medium Try it
39
Subarray Sum Equals Kprefix sum · hashmap
Medium Try it
40
Longest Consecutive Sequencehashset · arrays
Medium Try it
41
Search in Rotated Sorted Arraybinary search · arrays
Medium Try it
42
Simplify Unix Pathstack · strings
Medium Try it
43
Combination Sumbacktracking · arrays
Medium Try it
44
Unique Grid Pathsdynamic programming · arrays
Medium Try it
45
Non-overlapping Intervalsintervals · greedy
Medium Try it
46
Happy Numberfast slow pointers
Easy Try it
47
Count Connected Componentsunion find · graphs
Medium Try it
48
Prefix Word Countstrie · strings
Medium Try it
49
Network Delay Timedijkstra · graphs
Medium Try it
50
Sliding Window Maximumdeque · arrays
Medium Try it
51
Unweighted Graph Distancesbfs · graphs
Medium Try it