Giter VIP home page Giter VIP logo

leetcode's Introduction

Leetcode solutions for ๐Ÿš€ NeetCode.io

This repo hosts the solutions found on NeetCode.io including the solutions shown on the NeetCode YouTube channel. The site will periodically be updated with new solutions from this repo!


Solutions from these languages will be linked from NeetCode.io:

Python, Java, JavaScript, C++, Go, Swift, C#, TypeScript, Rust, Kotlin, Ruby, C, Scala and Dart

Solutions are also welcome for any other supported language on leetcode.com!

Contributing

Please read the contributing guidlines before opening a PR

To contribute, please fork this repo and open a PR adding a missing solution from the supported languages.

If you would like to have collaborator permissions on the repo to merge your own PRs or review others' PRs please let me know.

Credits

Missing Solutions

Arrays & Hashing

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0217 - Contains Duplicate
0242 - Valid Anagram
1299 - Replace Elements With Greatest Element On Right Side
โŒ
โŒ
โŒ
0392 - Is Subsequence
โŒ
โŒ
0058 - Length of Last Word
โŒ
0001 - Two Sum
0014 - Longest Common Prefix
โŒ
โŒ
โŒ
0049 - Group Anagrams
โŒ
0118 - Pascals Triangle
โŒ
โŒ
โŒ
0027 - Remove Element
โŒ
โŒ
0929 - Unique Email Addresses
โŒ
โŒ
โŒ
0205 - Isomorphic Strings
โŒ
โŒ
โŒ
0605 - Can Place Flowers
โŒ
โŒ
โŒ
0169 - Majority Element
โŒ
โŒ
โŒ
0496 - Next Greater Element I
โŒ
โŒ
โŒ
โŒ
0724 - Find Pivot Index
โŒ
โŒ
โŒ
0303 - Range Sum Query - Immutable
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0448 - Find All Numbers Disappeared In An Array
โŒ
โŒ
โŒ
โŒ
1189 - Maximum Number of Balloons
โŒ
โŒ
โŒ
โŒ
0290 - Word Pattern
โŒ
โŒ
โŒ
โŒ
0706 - Design HashMap
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0347 - Top K Frequent Elements
โŒ
0706 - Design Hashmap
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0238 - Product of Array Except Self
โŒ
โŒ
0036 - Valid Sudoku
โŒ
โŒ
0271 - Encode And Decode Strings
โŒ
โŒ
โŒ
โŒ
0128 - Longest Consecutive Sequence
โŒ
โŒ
0075 - Sort Colors
โŒ
โŒ
โŒ
0535 - Encode And Decode Tinyurl
โŒ
โŒ
โŒ
โŒ
โŒ
0554 - Brick Wall
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0122 - Best Time to Buy And Sell Stock II
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0560 - Subarray Sum Equals K
โŒ
โŒ
โŒ
โŒ
โŒ
1930 - Unique Length 3 Palindromic Subsequences
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1963 - Minimum Number of Swaps to Make The String Balanced
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
2001 - Number of Pairs of Interchangeable Rectangles
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
2002 - Maximum Product of The Length of Two Palindromic Subsequences
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
2017 - Grid Game
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0438 - Find All Anagrams In a String
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0028 - Find The Index of The First Occurrence In a String
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0280 - Wiggle Sort
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0179 - Largest Number
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0523 - Continuous Subarray Sum
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0838 - Push Dominoes
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0187 - Repeated Dna Sequences
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0380 - Insert Delete Get Random O(1)
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1461 - Check if a String Contains All Binary Codes of Size K
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0304 - Range Sum Query 2D Immutable
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0665 - Non Decreasing Array
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0041 - First Missing Positive
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ

Two Pointers

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0125 - Valid Palindrome
โŒ
0680 - Valid Palindrome II
โŒ
โŒ
โŒ
โŒ
1984 - Minimum Difference Between Highest And Lowest of K Scores
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0344 - Reverse String
โŒ
โŒ
โŒ
โŒ
0088 - Merge Sorted Array
โŒ
โŒ
โŒ
โŒ
โŒ
0283 - Move Zeroes
โŒ
โŒ
โŒ
0026 - Remove Duplicates From Sorted Array
โŒ
โŒ
โŒ
โŒ
โŒ
0167 - Two Sum II Input Array Is Sorted
โŒ
โŒ
0015 - 3Sum
โŒ
0018 - 4Sum
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0011 - Container With Most Water
1498 - Number of Subsequences That Satisfy The Given Sum Condition
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0189 - Rotate Array
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1968 - Array With Elements Not Equal to Average of Neighbors
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0881 - Boats to Save People
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0042 - Trapping Rain Water
โŒ
โŒ

Sliding Window

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0121 - Best Time to Buy And Sell Stock
โŒ
โŒ
0219 - Contains Duplicate II
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1343 - Number of Sub Arrays of Size K and Avg Greater than or Equal to Threshold
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0003 - Longest Substring Without Repeating Characters
โŒ
0424 - Longest Repeating Character Replacement
โŒ
โŒ
0567 - Permutation In String
โŒ
โŒ
โŒ
โŒ
1838 - Frequency of The Most Frequent Element
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1888 - Minimum Number of Flips to Make The Binary String Alternating
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0209 - Minimum Size Subarray Sum
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0658 - Find K Closest Elements
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0076 - Minimum Window Substring
โŒ
โŒ
0239 - Sliding Window Maximum
โŒ
โŒ
โŒ
โŒ
โŒ

Stack

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0020 - Valid Parentheses
โŒ
0682 - Baseball Game
โŒ
โŒ
โŒ
0225 - Implement Stack Using Queues
โŒ
โŒ
โŒ
โŒ
โŒ
0155 - Min Stack
โŒ
โŒ
0150 - Evaluate Reverse Polish Notation
โŒ
โŒ
0022 - Generate Parentheses
โŒ
โŒ
0735 - Asteroid Collision
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0739 - Daily Temperatures
โŒ
โŒ
0901 - Online Stock Span
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0853 - Car Fleet
โŒ
โŒ
โŒ
โŒ
0071 - Simplify Path
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0394 - Decode String
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0402 - Remove K Digits
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1209 - Remove All Adjacent Duplicates In String II
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0132 - 132 Pattern
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0895 - Maximum Frequency Stack
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0084 - Largest Rectangle In Histogram
โŒ
โŒ
โŒ
โŒ

Binary Search

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0704 - Binary Search
โŒ
0035 - Search Insert Position
โŒ
โŒ
โŒ
0374 - Guess Number Higher Or Lower
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0441 - Arranging Coins
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0977 - Squares of a Sorted Array
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0367 - Valid Perfect Square
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0074 - Search a 2D Matrix
โŒ
โŒ
0875 - Koko Eating Bananas
โŒ
โŒ
0033 - Search In Rotated Sorted Array
โŒ
โŒ
0153 - Find Minimum In Rotated Sorted Array
โŒ
0981 - Time Based Key Value Store
โŒ
โŒ
โŒ
โŒ
0034 - Find First And Last Position of Element In Sorted Array
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1898 - Maximum Number of Removable Characters
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0116 - Populating Next Right Pointers In Each Node
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1268 - Search Suggestions System
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0410 - Split Array Largest Sum
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0004 - Median of Two Sorted Arrays
โŒ
โŒ
โŒ
โŒ
โŒ

Linked List

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0206 - Reverse Linked List
0021 - Merge Two Sorted Lists
0234 - Palindrome Linked List
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0203 - Remove Linked List Elements
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0083 - Remove Duplicates From Sorted List
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0876 - Middle of the Linked List
โŒ
โŒ
โŒ
โŒ
โŒ
0160 - Intersection of Two Linked Lists
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0143 - Reorder List
โŒ
โŒ
โŒ
โŒ
โŒ
0019 - Remove Nth Node From End of List
โŒ
โŒ
โŒ
โŒ
0138 - Copy List With Random Pointer
โŒ
โŒ
โŒ
0707 - Design Linked List
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1472 - Design Browser History
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0002 - Add Two Numbers
โŒ
โŒ
0141 - Linked List Cycle
โŒ
โŒ
0287 - Find The Duplicate Number
โŒ
โŒ
โŒ
0024 - Swap Nodes In Pairs
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0148 - Sort List
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0086 - Partition List
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0061 - Rotate List
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0092 - Reverse Linked List II
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0622 - Design Circular Queue
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0147 - Insertion Sort List
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0146 - LRU Cache
โŒ
โŒ
โŒ
โŒ
โŒ
0023 - Merge K Sorted Lists
โŒ
โŒ
โŒ
โŒ
โŒ
0025 - Reverse Nodes In K Group
โŒ
โŒ
โŒ
โŒ
โŒ

Trees

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0094 - Binary Tree Inorder Traversal
โŒ
โŒ
โŒ
0226 - Invert Binary Tree
โŒ
โŒ
โŒ
0104 - Maximum Depth of Binary Tree
โŒ
โŒ
0543 - Diameter of Binary Tree
โŒ
โŒ
โŒ
0110 - Balanced Binary Tree
โŒ
โŒ
โŒ
0100 - Same Tree
โŒ
โŒ
0572 - Subtree of Another Tree
โŒ
โŒ
0108 - Convert Sorted Array to Binary Search Tree
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0617 - Merge Two Binary Trees
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0112 - Path Sum
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0606 - Construct String From Binary Tree
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0235 - Lowest Common Ancestor of a Binary Search Tree
โŒ
โŒ
0701 - Insert into a Binary Search Tree
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0450 - Delete Node in a BST
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0102 - Binary Tree Level Order Traversal
โŒ
โŒ
0199 - Binary Tree Right Side View
โŒ
โŒ
โŒ
1448 - Count Good Nodes In Binary Tree
โŒ
โŒ
โŒ
0098 - Validate Binary Search Tree
โŒ
โŒ
โŒ
0230 - Kth Smallest Element In a Bst
โŒ
โŒ
โŒ
0105 - Construct Binary Tree From Preorder And Inorder Traversal
โŒ
โŒ
โŒ
โŒ
โŒ
0096 - Unique Binary Search Trees
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0129 - Sum Root to Leaf Numbers
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0337 - House Robber III
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0951 - Flip Equivalent Binary Trees
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1993 - Operations On Tree
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0894 - All Possible Full Binary Trees
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0513 - Find Bottom Left Tree Value
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0669 - Trim a Binary Search Tree
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0173 - Binary Search Tree Iterator
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0538 - Convert Bst to Greater Tree
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0124 - Binary Tree Maximum Path Sum
โŒ
โŒ
โŒ
โŒ
0297 - Serialize And Deserialize Binary Tree
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ

Tries

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0208 - Implement Trie Prefix Tree
โŒ
0211 - Design Add And Search Words Data Structure
โŒ
โŒ
0212 - Word Search II
โŒ
โŒ
โŒ
โŒ
โŒ

Heap / Priority Queue

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0703 - Kth Largest Element In a Stream
โŒ
โŒ
โŒ
1046 - Last Stone Weight
โŒ
โŒ
โŒ
โŒ
0973 - K Closest Points to Origin
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0215 - Kth Largest Element In An Array
โŒ
โŒ
โŒ
โŒ
โŒ
0621 - Task Scheduler
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0355 - Design Twitter
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1834 - Single Threaded Cpu
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1845 - Seat Reservation Manager
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1882 - Process Tasks Using Servers
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1985 - Find The Kth Largest Integer In The Array
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0767 - Reorganize String
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1405 - Longest Happy String
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1094 - Car Pooling
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0295 - Find Median From Data Stream
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1383 - Maximum Performance of a Team
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ

Backtracking

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0078 - Subsets
โŒ
โŒ
0039 - Combination Sum
โŒ
โŒ
โŒ
0077 - Combinations
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0046 - Permutations
โŒ
โŒ
โŒ
0090 - Subsets II
โŒ
โŒ
โŒ
โŒ
0040 - Combination Sum II
โŒ
โŒ
โŒ
โŒ
โŒ
0047 - Permutations II
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0079 - Word Search
โŒ
โŒ
โŒ
0131 - Palindrome Partitioning
โŒ
โŒ
โŒ
โŒ
โŒ
0093 - Restore Ip Addresses
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0017 - Letter Combinations of a Phone Number
โŒ
โŒ
โŒ
โŒ
0473 - Matchsticks to Square
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1849 - Splitting a String Into Descending Consecutive Values
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1980 - Find Unique Binary String
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1239 - Maximum Length of a Concatenated String With Unique Characters
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0698 - Partition to K Equal Sum Subsets
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0051 - N Queens
โŒ
โŒ
โŒ
โŒ
0052 - N Queens II
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ

Graphs

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0463 - Island Perimeter
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0953 - Verifying An Alien Dictionary
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0200 - Number of Islands
โŒ
โŒ
โŒ
0133 - Clone Graph
โŒ
โŒ
โŒ
0695 - Max Area of Island
โŒ
โŒ
โŒ
โŒ
โŒ
1905 - Count Sub Islands
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0417 - Pacific Atlantic Water Flow
โŒ
โŒ
โŒ
โŒ
โŒ
0130 - Surrounded Regions
โŒ
โŒ
โŒ
โŒ
1466 - Reorder Routes to Make All Paths Lead to The City Zero
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0994 - Rotting Oranges
โŒ
โŒ
โŒ
โŒ
โŒ
0286 - Walls And Gates
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0909 - Snakes And Ladders
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0752 - Open The Lock
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0802 - Find Eventual Safe States
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0207 - Course Schedule
โŒ
โŒ
โŒ
โŒ
โŒ
0210 - Course Schedule II
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1958 - Check if Move Is Legal
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0934 - Shortest Bridge
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1091 - Shortest Path in Binary Matrix
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0684 - Redundant Connection
โŒ
โŒ
โŒ
โŒ
0323 - Number of Connected Components In An Undirected Graph
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0261 - Graph Valid Tree
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1553 - Minimum Number of Days to Eat N Oranges
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0127 - Word Ladder
โŒ
โŒ
โŒ
โŒ
โŒ

Advanced Graphs

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0332 - Reconstruct Itinerary
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1584 - Min Cost to Connect All Points
โŒ
โŒ
โŒ
โŒ
โŒ
0743 - Network Delay Time
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1514 - Path With Maximum Probability
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0778 - Swim In Rising Water
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0269 - Alien Dictionary
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0787 - Cheapest Flights Within K Stops
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ

1-D Dynamic Programming

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0070 - Climbing Stairs
โŒ
โŒ
0746 - Min Cost Climbing Stairs
โŒ
0198 - House Robber
โŒ
0213 - House Robber II
โŒ
0005 - Longest Palindromic Substring
โŒ
โŒ
โŒ
โŒ
0647 - Palindromic Substrings
โŒ
โŒ
โŒ
โŒ
0091 - Decode Ways
โŒ
โŒ
โŒ
โŒ
0322 - Coin Change
โŒ
โŒ
โŒ
0152 - Maximum Product Subarray
โŒ
โŒ
0139 - Word Break
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0300 - Longest Increasing Subsequence
โŒ
โŒ
โŒ
โŒ
โŒ
0416 - Partition Equal Subset Sum
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0120 - Triangle
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0740 - Delete And Earn
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0256 - Paint House
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0377 - Combination Sum IV
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0279 - Perfect Squares
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1856 - Maximum Subarray Min Product
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0983 - Minimum Cost For Tickets
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0343 - Integer Break
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0673 - Number of Longest Increasing Subsequence
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0691 - Stickers to Spell Word
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ

2-D Dynamic Programming

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0062 - Unique Paths
โŒ
โŒ
โŒ
โŒ
0063 - Unique Paths II
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1143 - Longest Common Subsequence
โŒ
โŒ
โŒ
โŒ
0309 - Best Time to Buy And Sell Stock With Cooldown
โŒ
โŒ
โŒ
0518 - Coin Change II
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0494 - Target Sum
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0097 - Interleaving String
โŒ
โŒ
โŒ
โŒ
โŒ
0877 - Stone Game
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0064 - Minimum Path Sum
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0329 - Longest Increasing Path In a Matrix
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0221 - Maximal Square
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
5782 - Maximum Alternating Subsequence Sum
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0115 - Distinct Subsequences
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0072 - Edit Distance
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1220 - Count Vowels Permutation
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0312 - Burst Balloons
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1866 - Number of Ways to Rearrange Sticks With K Sticks Visible
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0010 - Regular Expression Matching
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ

Greedy

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0053 - Maximum Subarray
โŒ
โŒ
0918 - Maximum Sum Circular Subarray
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0055 - Jump Game
โŒ
โŒ
โŒ
0045 - Jump Game II
โŒ
โŒ
โŒ
1871 - Jump Game VII
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0134 - Gas Station
โŒ
โŒ
โŒ
0846 - Hand of Straights
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1423 - Maximum Points You Can Obtain From Cards
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1899 - Merge Triplets to Form Target Triplet
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0763 - Partition Labels
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0678 - Valid Parenthesis String
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1921 - Eliminate Maximum Number of Monsters
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1029 - Two City Scheduling
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ

Intervals

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0057 - Insert Interval
โŒ
โŒ
โŒ
โŒ
0056 - Merge Intervals
โŒ
โŒ
โŒ
โŒ
โŒ
0435 - Non Overlapping Intervals
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0252 - Meeting Rooms
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0253 - Meeting Rooms II
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1288 - Remove Covered Intervals
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1851 - Minimum Interval to Include Each Query
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ

Math & Geometry

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0048 - Rotate Image
โŒ
โŒ
0054 - Spiral Matrix
โŒ
โŒ
โŒ
โŒ
โŒ
0073 - Set Matrix Zeroes
โŒ
โŒ
โŒ
โŒ
0202 - Happy Number
โŒ
โŒ
0066 - Plus One
โŒ
โŒ
0009 - Palindrome Number
โŒ
โŒ
โŒ
โŒ
โŒ
0263 - Ugly Number
โŒ
โŒ
โŒ
โŒ
โŒ
1260 - Shift 2D Grid
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0013 - Roman to Integer
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0012 - Integer to Roman
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0050 - Pow(x, n)
โŒ
โŒ
โŒ
โŒ
0043 - Multiply Strings
โŒ
โŒ
โŒ
โŒ
โŒ
2013 - Detect Squares
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
1041 - Robot Bounded In Circle
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
0006 - Zigzag Conversion
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
2028 - Find Missing Observations
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ

Bit Manipulation

Problem C C++ C# Dart GO Java JS Kotlin Python Ruby Rust Scala Swift TS
0136 - Single Number
โŒ
โŒ
0191 - Number of 1 Bits
โŒ
โŒ
0338 - Counting Bits
โŒ
โŒ
0190 - Reverse Bits
โŒ
โŒ
0268 - Missing Number
โŒ
โŒ
0371 - Sum of Two Integers
โŒ
โŒ
0007 - Reverse Integer
โŒ
0067 - Add Binary
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ
โŒ

Need to update the README? Update the template instead.

leetcode's People

Contributors

ahmad-a0 avatar neetcode-gh avatar tahsintunan avatar a93a avatar sharmatushar1 avatar ykhan799 avatar loczek avatar imaginate avatar ap-repositories avatar mitchellirvin avatar maratkhakim avatar akifhanilgaz avatar veerbia avatar mhamiid avatar aakhtar3 avatar saip7795 avatar unresolvedcold avatar julienchemillier avatar tedtran2019 avatar miladra avatar agnihotriketan avatar notauserx avatar aadil42 avatar caba5 avatar chriskheng avatar udaygarg avatar mahim1997 avatar vitali-matteo avatar r1cky0 avatar josuebrunel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.