Skip to content
/ leetcope Public

Leetcode solutions in JavaScript. Most of them are within the top 90% of JavaScript runtime distribution.

Notifications You must be signed in to change notification settings

crimx/leetcope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcope Build Status

Leetcode solutions in JavaScript. Most of them are within the top 90% of JavaScript runtime distribution (2018).

Templates are generated via Leetmark.

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.


Difficulty
Easy
Medium
Hard

Related Topics
Array
Backtracking
Binary Search
Bit Manipulation
Breadth-first Search
Depth-first Search
Divide and Conquer
Dynamic Programming
Graph
Greedy
Hash Table
Heap
Linked List
Math
Sort
Stack
String
Tree
Two Pointers
Union Find

Similar Questions
1-bit and 2-bit Characters
3Sum
3Sum Closest
3Sum Smaller
4Sum
4Sum II
Add Binary
Add Bold Tag in String
Add Strings
Add Two Numbers
Add Two Numbers II
Average of Levels in Binary Tree
Balanced Binary Tree
Best Time to Buy and Sell Stock
Best Time to Buy and Sell Stock II
Best Time to Buy and Sell Stock III
Best Time to Buy and Sell Stock IV
Best Time to Buy and Sell Stock with Cooldown
Best Time to Buy and Sell Stock with Transaction Fee
Binary Search Tree Iterator
Binary Tree Inorder Traversal
Binary Tree Level Order Traversal
Binary Tree Level Order Traversal II
Binary Tree Longest Consecutive Sequence
Binary Tree Maximum Path Sum
Binary Tree Paths
Binary Tree Postorder Traversal
Binary Tree Preorder Traversal
Binary Tree Right Side View
Binary Tree Vertical Order Traversal
Binary Tree Zigzag Level Order Traversal
Binary Watch
Cherry Pickup
Closest Binary Search Tree Value II
Combination Sum
Combination Sum II
Combination Sum III
Combination Sum IV
Combinations
Construct Binary Tree from Inorder and Postorder Traversal
Construct Binary Tree from Preorder and Inorder Traversal
Container With Most Water
Convert Binary Search Tree to Sorted Doubly Linked List
Convert Sorted Array to Binary Search Tree
Convert Sorted List to Binary Search Tree
Copy List with Random Pointer
Couples Holding Hands
Decode Ways II
Degree of an Array
Delete Operation for Two Strings
Different Ways to Add Parentheses
Dungeon Game
Employee Free Time
Encode and Decode Strings
Factor Combinations
Find All Numbers Disappeared in an Array
Find Minimum in Rotated Sorted Array
Find Mode in Binary Search Tree
Find the Duplicate Number
First Bad Version
Flatten a Multilevel Doubly Linked List
Game of Life
Generalized Abbreviation
Generate Parentheses
Group Shifted Strings
IP to CIDR
Inorder Successor in BST
Insert Interval
Integer to English Words
Integer to Roman
Jump Game
Jump Game II
Kth Smallest Element in a BST
Largest Rectangle in Histogram
Letter Case Permutation
Letter Combinations of a Phone Number
Longest Palindromic Subsequence
Longest Substring with At Most Two Distinct Characters
Longest Univalue Path
Longest Valid Parentheses
Maximal Rectangle
Maximal Square
Maximum Depth of Binary Tree
Maximum Depth of N-ary Tree
Maximum Product Subarray
Maximum Subarray
Maximum Sum of 3 Non-Overlapping Subarrays
Meeting Rooms
Meeting Rooms II
Merge Intervals
Merge Sorted Array
Merge Two Sorted Lists
Merge k Sorted Lists
Min Cost Climbing Stairs
Minimum ASCII Delete Sum for Two Strings
Minimum Depth of Binary Tree
Minimum Distance Between BST Nodes
Minimum Genetic Mutation
Minimum Path Sum
Minimum Size Subarray Sum
Minimum Window Subsequence
Minimum Window Substring
Missing Number
Move Zeroes
Multiply Strings
N-Queens
N-Queens II
N-ary Tree Level Order Traversal
Next Permutation
Number of Islands
One Edit Distance
Palindrome Linked List
Palindrome Pairs
Palindrome Partitioning
Palindrome Partitioning II
Palindrome Permutation
Palindrome Permutation II
Palindromic Substrings
Partition Labels
Pascal's Triangle
Pascal's Triangle II
Path Sum
Path Sum II
Path Sum III
Path Sum IV
Permutation Sequence
Permutation in String
Permutations
Permutations II
Plus One
Plus One Linked List
Populating Next Right Pointers in Each Node
Populating Next Right Pointers in Each Node II
Pour Water
Pow(x, n)
Product of Array Except Self
Range Module
Regular Expression Matching
Remove Duplicates from Sorted Array
Remove Duplicates from Sorted Array II
Remove Duplicates from Sorted List
Remove Duplicates from Sorted List II
Remove Element
Remove Invalid Parentheses
Remove Linked List Elements
Repeated Substring Pattern
Reverse Integer
Reverse Linked List
Reverse Nodes in k-Group
Roman to Integer
Rotate Array
Search a 2D Matrix II
Search in Rotated Sorted Array
Search in Rotated Sorted Array II
Shortest Palindrome
Shortest Word Distance II
Sliding Window Maximum
Smallest Range
Sort List
Spiral Matrix
Spiral Matrix II
Split Linked List in Parts
Sqrt(x)
String Compression
String to Integer (atoi)
Subarray Sum Equals K
Subsets
Subsets II
Substring with Concatenation of All Words
Sudoku Solver
Sum Root to Leaf Numbers
Sum of Two Integers
Super Pow
Swap Nodes in Pairs
Teemo Attacking
Trapping Rain Water
Trapping Rain Water II
Two Sum
Two Sum II - Input array is sorted
Two Sum III - Data structure design
Two Sum IV - Input is a BST
Ugly Number II
Unique Binary Search Trees
Unique Binary Search Trees II
Unique Paths
Unique Paths II
Valid Anagram
Valid Number
Valid Palindrome II
Valid Parentheses
Valid Perfect Square
Valid Sudoku
Validate Binary Search Tree
Walls and Gates
Wiggle Sort
Wiggle Sort II
Wildcard Matching
Word Ladder
Word Ladder II
Word Search II

About

Leetcode solutions in JavaScript. Most of them are within the top 90% of JavaScript runtime distribution.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages