GithubHelp home page GithubHelp logo

leetcoder's Introduction

My LeetCode Practice

Problem List

Array

26 - Remove Duplicates from Sorted Array
41 - First Missing Positive
48 - Rotate Image
54 - Spiral Matrix
56 - Merge Intervals
66 - Plus One
75 - Sort Colors
118 - Pascal's Triangle
119 - Pascal's Triangle II
238 - Product of Array Except Self
268 - Missing Number
283 - Move Zeroes
289 - Game of Life
303 - Range Sum Query - Immutable
361 - Bomb Enemy
363 - Max Sum of Rectangle No Larger Than K
485 - Max Consecutive Ones
665 - Non-decreasing Array
667 - Beautiful Arrangement II
724 - Find Pivot Index
830 - Positions of Large Groups
905 - Sort Array By Parity
922 - Sort Array By Parity II
1010 - Pairs of Songs With Total Durations Divisible by 60
1200 - Minimum Absolute Difference
1423 - Maximum Points You Can Obtain from Cards
1437 - Check If All 1's Are at Least Length K Places Away
1465 - Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
1480 - Running Sum of 1d Array
1512 - Number of Good Pairs
1629 - Slowest Key
1672 - Richest Customer Wealth
1704 - Determine if String Halves Are Alike
1833 - Maximum Ice Cream Bars

BFS

17 - Letter Combinations of a Phone Number
62 - Unique Paths
102 - Binary Tree Level Order Traversal
103 - Binary Tree Zigzag Level Order Traversal
104 - Maximum Depth of Binary Tree
107 - Binary Tree Level Order Traversal II
111 - Minimum Depth of Binary Tree
116 - Populating Next Right Pointers in Each Node
127 - Word Ladder
199 - Binary Tree Right Side View
200 - Number of Islands
329 - Longest Increasing Path in a Matrix
417 - Pacific Atlantic Water Flow
547 - Number of Provinces
559 - Maximum Depth of N-ary Tree
690 - Employee Importance
695 - Max Area of Island
733 - Flood Fill
752 - Open the Lock
841 - Keys and Rooms
847 - Shortest Path Visiting All Nodes
1306 - Jump Game III
1609 - Even Odd Tree

Binary Search

33 - Search in Rotated Sorted Array
34 - Find First and Last Position of Element in Sorted Array
74 - Search a 2D Matrix
374 - Guess Number Higher or Lower
528 - Random Pick with Weight
981 - Time Based Key-Value Store

Design

146 - LRU Cache
1348 - Tweet Counts Per Frequency
1396 - Design Underground System
1603 - Design Parking System

DFS

22 - Generate Parentheses
46 - Permutations
47 - Permutations II
51 - N-Queens
79 - Word Search
105 - Construct Binary Tree from Preorder and Inorder Traversal
106 - Construct Binary Tree from Inorder and Postorder Traversal
124 - Binary Tree Maximum Path Sum
129 - Sum Root to Leaf Numbers
236 - Lowest Common Ancestor of a Binary Tree
298 - Binary Tree Longest Consecutive Sequence
301 - Remove Invalid Parentheses
526 - Beautiful Arrangement
783 - Minimum Distance Between BST Nodes
784 - Letter Case Permutation
797 - All Paths From Source to Target
968 - Binary Tree Cameras
979 - Distribute Coins in Binary Tree
1079 - Letter Tile Possibilities
1219 - Path with Maximum Gold
1457 - Pseudo-Palindromic Paths in a Binary Tree

Dynamic Programming

5 - Longest Palindromic Substring
53 - Maximum Subarray
55 - Jump Game
62 - Unique Paths
63 - Unique Paths II
70 - Climbing Stairs
91 - Decode Ways
120 - Triangle
121 - Best Time to Buy and Sell Stock
139 - Word Break
198 - House Robber
213 - House Robber II
264 - Ugly Number II
300 - Longest Increasing Subsequence
303 - Range Sum Query - Immutable
304 - Range Sum Query 2D - Immutable
313 - Super Ugly Number
322 - Coin Change
334 - Increasing Triplet Subsequence
337 - House Robber III
376 - Wiggle Subsequence
416 - Partition Equal Subset Sum
473 - Matchsticks to Square
583 - Delete Operation for Two Strings
647 - Palindromic Substrings
698 - Partition to K Equal Sum Subsets
740 - Delete and Earn
746 - Min Cost Climbing Stairs
795 - Number of Subarrays with Bounded Maximum
823 - Binary Trees With Factors
931 - Minimum Falling Path Sum
1048 - Longest String Chain
1143 - Longest Common Subsequence
1339 - Maximum Product of Splitted Binary Tree

Graph

207 - Course Schedule
210 - Course Schedule II
399 - Evaluate Division

Greedy

45 - Jump Game II
68 - Text Justification
134 - Gas Station
279 - Perfect Squares
402 - Remove K Digits
605 - Can Place Flowers
621 - Task Scheduler
630 - Course Schedule III
881 - Boats to Save People
1094 - Car Pooling
1354 - Construct Target Array With Multiple Sums
1481 - Least Number of Unique Integers after K Removals
1518 - Water Bottles
1710 - Maximum Units on a Truck
1775 - Equal Sum Arrays With Minimum Number of Operations

Hash Table

1 - Two Sum
3 - Longest Substring Without Repeating Characters
15 - 3Sum
49 - Group Anagrams
202 - Happy Number
205 - Isomorphic Strings
217 - Contains Duplicate
249 - Group Shifted Strings
290 - Word Pattern
525 - Contiguous Array
554 - Brick Wall
560 - Subarray Sum Equals K
575 - Distribute Candies
645 - Set Mismatch
706 - Design HashMap
771 - Jewels and Stones
804 - Unique Morse Code Words
811 - Subdomain Visit Count
890 - Find and Replace Pattern
953 - Verifying an Alien Dictionary
961 - N-Repeated Element in Size 2N Array
966 - Vowel Spellchecker
970 - Powerful Integers
1086 - High Five
1189 - Maximum Number of Balloons
1640 - Check Array Formation Through Concatenation

Heap

218 - The Skyline Problem
347 - Top K Frequent Elements
451 - Sort Characters By Frequency
973 - K Closest Points to Origin
1642 - Furthest Building You Can Reach

Linked List

2 - Add Two Numbers
19 - Remove Nth Node From End of List
21 - Merge Two Sorted Lists
61 - Rotate List
138 - Copy List with Random Pointer
141 - Linked List Cycle
142 - Linked List Cycle II
160 - Intersection of Two Linked Lists
206 - Reverse Linked List
234 - Palindrome Linked List
237 - Delete Node in a Linked List
876 - Middle of the Linked List
1290 - Convert Binary Number in a Linked List to Integer
1669 - Merge In Between Linked Lists
1721 - Swapping Nodes in a Linked List

Math

67 - Add Binary
258 - Add Digits
263 - Ugly Number
326 - Power of Three
412 - Fizz Buzz
415 - Add Strings
462 - Minimum Moves to Equal Array Elements II
478 - Generate Random Point in a Circle
509 - Fibonacci Number
633 - Sum of Square Numbers
829 - Consecutive Numbers Sum
1041 - Robot Bounded In Circle
1175 - Prime Arrangements
1551 - Minimum Operations to Make Array Equal
1688 - Count of Matches in Tournament

Others

65 - Valid Number
136 - Single Number
231 - Power of Two
423 - Reconstruct Original Digits from English
441 - Arranging Coins
461 - Hamming Distance
480 - Sliding Window Median
581 - Shortest Unsorted Continuous Subarray
721 - Accounts Merge
990 - Satisfiability of Equality Equations
1304 - Find N Unique Integers Sum up to Zero
1689 - Partitioning Into Minimum Number Of Deci-Binary Numbers

Set

36 - Valid Sudoku
204 - Count Primes
1496 - Path Crossing

Stack

20 - Valid Parentheses
71 - Simplify Path
150 - Evaluate Reverse Polish Notation
844 - Backspace String Compare
856 - Score Of Parentheses
946 - Validate Stack Sequences
1003 - Check If Word Is Valid After Substitutions
1047 - Remove All Adjacent Duplicates In String
1209 - Remove All Adjacent Duplicates in String II
1249 - Minimum Remove to Make Valid Parentheses

String

12 - Integer to Roman
14 - Longest Common Prefix
38 - Count and Say
125 - Valid Palindrome
242 - Valid Anagram
299 - Bulls and Cows
344 - Reverse String
387 - First Unique Character in a String
389 - Find the Difference
394 - Decode String
438 - Find All Anagrams in a String
551 - Student Attendance Record I
567 - Permutation in String
709 - To Lower Case
824 - Goat Latin
916 - Word Subsets
929 - Unique Email Addresses
1332 - Remove Palindromic Subsequences
1422 - Maximum Score After Splitting a String
1461 - Check If a String Contains All Binary Codes of Size K
1472 - Design Browser History
1684 - Count the Number of Consistent Strings
1790 - Check if One String Swap Can Make Strings Equal

Tree

108 - Convert Sorted Array to Binary Search Tree
109 - Convert Sorted List to Binary Search Tree
113 - Path Sum II
114 - Flatten Binary Tree to Linked List
144 - Binary Tree Preorder Traversal
226 - Invert Binary Tree
257 - Binary Tree Paths
270 - Closest Binary Search Tree Value
307 - Range Sum Query - Mutable
543 - Diameter of Binary Tree
572 - Subtree of Another Tree
589 - N-ary Tree Preorder Traversal
606 - Construct String from Binary Tree
617 - Merge Two Binary Trees
623 - Add One Row to Tree
637 - Average of Levels in Binary Tree
938 - Range Sum of BST
965 - Univalued Binary Tree
993 - Cousins in Binary Tree
1008 - Construct Binary Search Tree from Preorder Traversal
1110 - Delete Nodes And Return Forest
1302 - Deepest Leaves Sum
1379 - Find a Corresponding Node of a Binary Tree in a Clone of That Tree

Trie

208 - Implement Trie (Prefix Tree)
211 - Design Add and Search Words Data Structure
745 - Prefix and Suffix Search
1268 - Search Suggestions System

Two Pointers

11 - Container With Most Water
76 - Minimum Window Substring
88 - Merge Sorted Array
167 - Two Sum II - Input array is sorted
287 - Find the Duplicate Number
443 - String Compression
809 - Expressive Words

Weekly Contest

246

leetcoder's People

Contributors

ahlee-shawn avatar

Stargazers

 avatar

Watchers

 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.