JavaScript LeetCode Problems: All 67, With Python Solutions
Every problem in this library that LeetCode tags JavaScript — 67 in total, 0 of them with a complete Python solution, a worked example and the time and space complexity of the approach.
- 67 problems
- 30 Easy
- 31 Medium
- 6 Hard
JavaScript problems by difficulty
Problems with a complete Python solution are listed first, then by ascending problem number.
Easy (30)
| # | Problem | Difficulty | Topics |
|---|---|---|---|
| 2619 | Array Prototype Last | Easy | JavaScript |
| 2620 | Counter | Easy | JavaScript |
| 2621 | Sleep | Easy | JavaScript |
| 2626 | Array Reduce Transformation | Easy | JavaScript |
| 2629 | Function Composition | Easy | JavaScript |
| 2634 | Filter Elements from Array | Easy | JavaScript |
| 2635 | Apply Transform Over Each Element in Array | Easy | JavaScript |
| 2648 | Generate Fibonacci Sequence | Easy | JavaScript |
| 2665 | Counter II | Easy | JavaScript |
| 2666 | Allow One Function Call | Easy | JavaScript |
| 2667 | Create Hello World Function | Easy | JavaScript |
| 2677 | Chunk Array | Easy | JavaScript |
| 2690 | Infinite Method ObjectPremium | Easy | JavaScript |
| 2695 | Array Wrapper | Easy | JavaScript |
| 2703 | Return Length of Arguments Passed | Easy | JavaScript |
| 2704 | To Be Or Not To Be | Easy | JavaScript |
| 2715 | Timeout Cancellation | Easy | JavaScript |
| 2723 | Add Two Promises | Easy | JavaScript |
| 2724 | Sort By | Easy | JavaScript |
| 2725 | Interval Cancellation | Easy | JavaScript |
| 2726 | Calculator with Method Chaining | Easy | JavaScript |
| 2727 | Is Object Empty | Easy | JavaScript |
| 2758 | Next DayPremium | Easy | JavaScript |
| 2774 | Array Upper BoundPremium | Easy | JavaScript |
| 2794 | Create Object from Two ArraysPremium | Easy | JavaScript |
| 2796 | Repeat StringPremium | Easy | JavaScript |
| 2797 | Partial Function with PlaceholdersPremium | Easy | JavaScript |
| 2803 | Factorial GeneratorPremium | Easy | JavaScript |
| 2804 | Array Prototype ForEachPremium | Easy | JavaScript |
| 2822 | Inversion of ObjectPremium | Easy | JavaScript |
Medium (31)
| # | Problem | Difficulty | Topics |
|---|---|---|---|
| 2618 | Check if Object Instance of Class | Medium | JavaScript |
| 2622 | Cache With Time Limit | Medium | JavaScript |
| 2623 | Memoize | Medium | JavaScript |
| 2624 | Snail Traversal | Medium | JavaScript |
| 2625 | Flatten Deeply Nested Array | Medium | JavaScript |
| 2627 | Debounce | Medium | JavaScript |
| 2628 | JSON Deep EqualPremium | Medium | JavaScript |
| 2631 | Group By | Medium | JavaScript |
| 2632 | CurryPremium | Medium | JavaScript |
| 2633 | Convert Object to JSON StringPremium | Medium | JavaScript |
| 2636 | Promise PoolPremium | Medium | JavaScript |
| 2637 | Promise Time Limit | Medium | JavaScript |
| 2649 | Nested Array Generator | Medium | JavaScript |
| 2676 | ThrottlePremium | Medium | JavaScript |
| 2692 | Make Object ImmutablePremium | Medium | JavaScript |
| 2693 | Call Function with Custom Context | Medium | JavaScript |
| 2694 | Event Emitter | Medium | JavaScript |
| 2700 | Differences Between Two ObjectsPremium | Medium | JavaScript |
| 2705 | Compact Object | Medium | JavaScript |
| 2721 | Execute Asynchronous Functions in Parallel | Medium | JavaScript |
| 2722 | Join Two Arrays by ID | Medium | JavaScript |
| 2754 | Bind Function to ContextPremium | Medium | JavaScript |
| 2755 | Deep Merge of Two ObjectsPremium | Medium | JavaScript |
| 2757 | Generate Circular Array ValuesPremium | Medium | JavaScript |
| 2775 | Undefined to NullPremium | Medium | JavaScript |
| 2776 | Convert Callback Based Function to Promise Based FunctionPremium | Medium | JavaScript |
| 2777 | Date Range GeneratorPremium | Medium | JavaScript |
| 2795 | Parallel Execution of Promises for Individual Results RetrievalPremium | Medium | JavaScript |
| 2805 | Custom IntervalPremium | Medium | JavaScript |
| 2821 | Delay the Resolution of Each PromisePremium | Medium | JavaScript |
| 2823 | Deep Object FilterPremium | Medium | JavaScript |
Hard (6)
| # | Problem | Difficulty | Topics |
|---|---|---|---|
| 2630 | Memoize II | Hard | JavaScript |
| 2650 | Design Cancellable Function | Hard | JavaScript |
| 2675 | Array of Objects to MatrixPremium | Hard | JavaScript |
| 2691 | Immutability HelperPremium | Hard | JavaScript |
| 2756 | Query BatchingPremium | Hard | JavaScript |
| 2759 | Convert JSON String to ObjectPremium | Hard | JavaScript |
Keep exploring
All LeetCode topicsEvery tag with a page of its own, with the number of problems behind each.LeetCode patternsThe techniques themselves, with a Python template and complexity for each.Curated study listsBlind 75, NeetCode 150 and three more, grouped by pattern.Easy problemsStart here when the data structure is new rather than the problem.
Other topics
- Array1,569
- String672
- Hash Table588
- Math485
- Dynamic Programming481
- Sorting392
- Greedy346
- Depth-First Search289
- Binary Search253
- Database249
- Tree225
- Breadth-First Search223
- Matrix216
- Two Pointers201
- Bit Manipulation194
- Binary Tree174
- Heap (Priority Queue)163
- Prefix Sum157
- Stack157
- Simulation144
- Graph138
- Counting126
- Design122
- Sliding Window116
When the JavaScript problem arrives live
Stealth Interview is a desktop app for macOS and Windows. It reads the coding problem off your screen, returns a working solution with a step-by-step explanation and its time and space complexity, and transcribes what the interviewer is saying — while staying invisible to screen sharing.