Skip to content

msencer/leetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions https://img.shields.io/badge/language-Python-blue.svg https://img.shields.io/badge/language-C%2B%2B-red.svg https://img.shields.io/badge/progress-77%2F373-green.svg

I gathered all my solutions to the problems listed in LeetCode.com. If you think you have a better solution to offer or improvement suggestions, please issue a pull request. Implementations in other programming languages are welcome too!!

Problems sorted by their difficulties

Problem List

TitleSolutionNotes
Delete Node in a Linked ListPython
Linked List CyclePython C++Fast/Slow runner approach
Majority ElementPython
Move ZerosPython C++Using two pointers
Sum two integersPython C++
Two SumPython
Valid AnagramPython
Merge two sorted linked listsPython
Lowest Common Ancestor of a BSTPython
Ugly NumberPython
Climbing StairsPythonDynamic programming example
Best Time to Buy and Sell StockPython C++
Implement Queue using StacksPython
Remove Duplicates from Sorted ArrayPython
Palindrome NumberPython C++
Valid SudokuPython
Path SumPython
Add DigitsPython
Maximum depth of binary treePython
Minimum depth of binary treePythonLevel order search is used
Invert binary treePythonIterative
Intersection of Two ArraysPython
Intersection of Two Arrays 2Python
Excel Sheet Column NumberPython
Contains DuplicatePython
Roman to IntegerPython
Reverse linked listPython
Power of twoPython
Power of threePython
Power of fourPython
Happy NumberPython
Number of 1 bitsPython
Remove Duplicates from Sorted ListPython
Reverse Vowels of a StringC++
Swap nodes in pairsPython
House robberPython
Binary tree level order traversalPython
Binary tree level order traversal IIPython
Remove ElementPython
Plus OnePython
Symmetric TreePython
Balanced Binary TreePythonIterative approach
Pascal’s TrianglePython
Pascal’s Triangle IIPython C++
Factorial Trailing ZerosPython C++
Reverse BitsPython
Reverse IntegerPython
String to Integer (atoi)Python
Guess number Higher or LowerPython
Binary Tree PathPython
Isomorphic StringsPython
Rectangle AreaPython
Stack using QueuesPython
Remove Nth Node From End of ListPython
First Unique Character in a StringPython
Word PatternPython
Implement strStr()Python
Min StackPython
Merge sorted arrayPython
Intersection of Two Linked ListsPython
Add BinaryPython
Longest Common PrefixPython
Range sum queryPython
TitleSolutionNotes
Counting BitsPythonO(n) solution
Shuffle an arrayPython
Maximum SubarrayPython
Bitwise AND of Numbers RangePython
Simplify PathPython
TitleSolutionNotes
Valid NumberPythonFA implementation
LRU CachePythonDouble linked list solution

About

Solutions to some of the questions on LeetCode.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published