Skip to content

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

License

NotificationsYou must be signed in to change notification settings

EircYangQiXin/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
0001Two SumArray, Hash Table
0007Reverse IntegerMath
0009Palindrome NumberMath
0013Roman to IntegerMath, String
0014Longest Common PrefixString
0020Valid ParenthesesString, Stack
0021Merge Two Sorted ListsLinked List
0028Implement strStr()Two Pointers, String
0035Search Insert PositionArray, Binary Search
0053Maximum SubarrayArray, Divide and Conquer, Dynamic Programming
0070Climbing StairsDynamic Programming
0083Remove Duplicates from Sorted ListLinked List
0136Single NumberHash Table, Bit Manipulation
0141Linked List CycleLinked List, Two Pointers
0155Min StackStack, Design
0175Combine Two TablesSQL
0176Second Highest SalarySQL
0181Employees Earning More Than Their ManagersSQL
0182Duplicate EmailsSQL
0183Customers Who Never OrderSQL
0189Rotate ArrayArray
0196Delete Duplicate EmailsSQL
0197Rising TemperatureSQL
0198House RobberDynamic Programming
0203Remove Linked List ElementsLinked List
0231Power of TwoMath, Bit Manipulation
0234Palindrome Linked ListLinked List, Two Pointers
0235Lowest Common Ancestor of a Binary Search TreeTree
0237Delete Node in a Linked ListLinked List
0344Reverse StringTwo Pointers, String
0581Shortest Unsorted Continuous SubarrayArray
0595Big CountriesSQL
0596Classes More Than 5 StudentsSQL
0605Can Place FlowersArray
0620Not Boring MoviesSQL
0627Swap SalarySQL
0695Max Area of IslandArray, Depth-first Search
0703Kth Largest Element in a StreamHeap
0707Design Linked ListLinked List, Design
0876Middle of the Linked ListLinked List

Medium

#TitleTags
0002Add Two NumbersLinked List, Math
0003Longest Substring Without Repeating CharactersHash Table, Two Pointers, String
0005Longest Palindromic SubstringString, Dynamic Programming
00153SumArray, Two Pointers
00184SumArray, Hash Table, Two Pointers
0019Remove Nth Node From End of ListLinked List, Two Pointers
0024Swap Nodes in PairsLinked List
0031Next PermutationArray
0046PermutationsBacktracking
0047Permutations IIBacktracking
0054Spiral MatrixArray
0059Spiral Matrix IIArray
0061Rotate ListLinked List, Two Pointers
0062Unique PathsArray, Dynamic Programming
0063Unique Paths IIArray, Dynamic Programming
0075Sort ColorsArray, Two Pointers, Sort
0082Remove Duplicates from Sorted List IILinked List
0086Partition ListLinked List, Two Pointers
0092Reverse Linked List IILinked List
0094Binary Tree Inorder TraversalHash Table, Stack, Tree
0102Binary Tree Level Order TraversalTree, Breadth-first Search
0127Word LadderBreadth-first Search
0130Surrounded RegionsDepth-first Search, Breadth-first Search, Union Find
0137Single Number IIBit Manipulation
0142Linked List Cycle IILinked List, Two Pointers
0143Reorder ListLinked List
0144Binary Tree Preorder TraversalStack, Tree
0150Evaluate Reverse Polish NotationStack
0153Find Minimum in Rotated Sorted ArrayArray, Binary Search
0177Nth Highest SalarySQL
0178Rank ScoresSQL
0180Consecutive NumbersSQL
0184Department Highest SalarySQL
0328Odd Even Linked ListLinked List

Hard

#TitleTags
0004Median of Two Sorted ArraysArray, Binary Search, Divide and Conquer
0023Merge k Sorted ListsLinked List, Divide and Conquer, Heap
0032Longest Valid ParenthesesString, Dynamic Programming
0084Largest Rectangle in HistogramArray, Stack
0145Binary Tree Postorder TraversalStack, Tree
0295Find 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 41.4%
  • C++ 30.0%
  • JavaScript 13.0%
  • Python 11.9%
  • Ruby 3.3%
  • Scala 0.2%
  • Go 0.2%