Skip to content

🤭 LeetCode solutions in Java/Python/CPP/Ruby/JS/Scala/Go...

License

NotificationsYou must be signed in to change notification settings

lai1245199086/leetcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-GitHub-yanglbme

LanguagePRs Welcomeissuesstarsforks

Introduction

Complete solutions to Leetcode problems, updated daily.

Solution List

Easy

#TitleTags
001Two SumArray, Hash Table
007Reverse IntegerMath
009Palindrome NumberMath
013Roman to IntegerMath, String
014Longest Common PrefixString
020Valid ParenthesesString, Stack
021Merge Two Sorted ListsLinked List
028Implement strStr()Two Pointers, String
035Search Insert PositionArray, Binary Search
053Maximum SubarrayArray, Divide and Conquer, Dynamic Programming
070Climbing StairsDynamic Programming
083Remove Duplicates from Sorted ListLinked List
136Single NumberHash Table, Bit Manipulation
141Linked List CycleLinked List, Two Pointers
155Min StackStack, Design
175Combine Two TablesSQL
176Second Highest SalarySQL
181Employees Earning More Than Their ManagersSQL
182Duplicate EmailsSQL
183Customers Who Never OrderSQL
189Rotate ArrayArray
196Delete Duplicate EmailsSQL
197Rising TemperatureSQL
198House RobberDynamic Programming
203Remove Linked List ElementsLinked List
231Power of TwoMath, Bit Manipulation
234Palindrome Linked ListLinked List, Two Pointers
235Lowest Common Ancestor of a Binary Search TreeTree
237Delete Node in a Linked ListLinked List
344Reverse StringTwo Pointers, String
581Shortest Unsorted Continuous SubarrayArray
595Big CountriesSQL
596Classes More Than 5 StudentsSQL
605Can Place FlowersArray
620Not Boring MoviesSQL
627Swap SalarySQL
695Max Area of IslandArray, Depth-first Search
703Kth Largest Element in a StreamHeap
707Design Linked ListLinked List, Design
876Middle of the Linked ListLinked List

Medium

#TitleTags
002Add Two NumbersLinked List, Math
003Longest Substring Without Repeating CharactersHash Table, Two Pointers, String
005Longest Palindromic SubstringString, Dynamic Programming
0153SumArray, Two Pointers
0184SumArray, Hash Table, Two Pointers
019Remove Nth Node From End of ListLinked List, Two Pointers
024Swap Nodes in PairsLinked List
031Next PermutationArray
046PermutationsBacktracking
047Permutations IIBacktracking
054Spiral MatrixArray
059Spiral Matrix IIArray
061Rotate ListLinked List, Two Pointers
062Unique PathsArray, Dynamic Programming
063Unique Paths IIArray, Dynamic Programming
075Sort ColorsArray, Two Pointers, Sort
082Remove Duplicates from Sorted List IILinked List
086Partition ListLinked List, Two Pointers
092Reverse Linked List IILinked List
094Binary Tree Inorder TraversalHash Table, Stack, Tree
102Binary Tree Level Order TraversalTree, Breadth-first Search
127Word LadderBreadth-first Search
130Surrounded RegionsDepth-first Search, Breadth-first Search, Union Find
137Single Number IIBit Manipulation
142Linked List Cycle IILinked List, Two Pointers
143Reorder ListLinked List
144Binary Tree Preorder TraversalStack, Tree
150Evaluate Reverse Polish NotationStack
153Find Minimum in Rotated Sorted ArrayArray, Binary Search
177Nth Highest SalarySQL
178Rank ScoresSQL
180Consecutive NumbersSQL
184Department Highest SalarySQL
328Odd Even Linked ListLinked List

Hard

#TitleTags
004Median of Two Sorted ArraysArray, Binary Search, Divide and Conquer
023Merge k Sorted ListsLinked List, Divide and Conquer, Heap
032Longest Valid ParenthesesString, Dynamic Programming
084Largest Rectangle in HistogramArray, Stack
145Binary Tree Postorder TraversalStack, Tree
295Find Median from Data StreamHeap, Design

Contributions

I'm looking for long-term contributors/partners to this repo! Send me PRs if you're interested! See the following:

  • Fork this repository to your own account and then clone it to your local device.
  • Add or update file of the repository, then commit and push it to your repository.
  • Submit a pull request with your changes!
  • For more details, see CONTRIBUTING.md

how-to-contribute

Contributors

" If you want to go fast, go alone. If you want to go far, go together. And that's the spirit of teamwork ".

About

🤭 LeetCode solutions in Java/Python/CPP/Ruby/JS/Scala/Go...

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 50.6%
  • C++ 26.5%
  • Python 14.0%
  • Ruby 4.4%
  • JavaScript 4.0%
  • Scala 0.3%
  • Go 0.2%