Skip to content
forked from doocs/leetcode

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

License

NotificationsYou must be signed in to change notification settings

fonxian/leetcode-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-GitHub

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
053Maximum SubarrayArray, Divide and Conquer, Dynamic Programming
070Climbing StairsDynamic Programming
083Remove Duplicates from Sorted ListLinked List
136Single NumberHash Table, Bit Manipulation
189Rotate ArrayArray
198House RobberDynamic Programming
203Remove Linked List ElementsLinked List
231Power of TwoMath, Bit Manipulation
235Lowest Common Ancestor of a Binary Search TreeTree
237Delete Node in a Linked ListLinked List
344Reverse StringTwo Pointers, String
703Kth Largest Element in a StreamHeap
876Middle of the Linked ListLinked List

Medium

#TitleTags
002Add Two NumbersLinked List, Math
0153SumArray, Two Pointers
019Remove Nth Node From End of ListLinked List, Two Pointers
024Swap Nodes in PairsLinked List
031Next PermutationArray
046PermutationsBacktracking
047Permutations IIBacktracking
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
144Binary Tree Preorder TraversalStack, Tree
150Evaluate Reverse Polish NotationStack
153Find Minimum in Rotated Sorted ArrayArray, Binary Search

Hard

#TitleTags
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.
  • Submit a pull request with your changes!

Contributors


yanglbme

💻

chakyam

💻

zhkmxx9302013

💻

MarkKuang1991

💻

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 61.7%
  • Python 30.1%
  • Ruby 4.4%
  • C++ 2.7%
  • Other 1.1%