Skip to content

Repository files navigation

LanguageLicenseProgress

  • This is a Repository where I record my solutions to LeetCode Problems
  • I will periodically update the README to keep the categories up-to-date
  • Life is not a race, but there's no speed limit either :)
  • Have FUN

Algorithms

  • Arrays
  • Binary Search
  • Breadth First Search
  • Depth First Search
  • Graph
  • Heap
  • Linked Lists
  • Math
  • Recursion
  • Stack
  • Strings
  • Trees
  • Queue

Questions

#TitleTimeSpaceDifficultyNotesTags
1Two SumO(n)O(n)Easy-Array, HashMap
2Add Two NumbersO(n)O(1)Medium-LinkedList
3Longest Substring Without Repeating CharactersO(n)O(size(char_set))Medium-HashMap
4Median of Two Sorted ArraysO(log(min(m,n)))O(1)HardRMath, BinarySearch
5Longest Palindromic SubstringO(n^2)O(1)Medium-DP, Array
6ZigZag ConversionO(n)O(n)Medium-String
7Reverse IntegerO(logn (base10))O(1)Easy-Math
8String to IntegerO(n)O(n)Medium-Math, String
9Palindrome NumberO(logn (base10))O(1)Easy-Math
10Regular Expression Matching
11Container With Most WaterO(n)O(1)Medium-Array, Two Pointers
12Integer to RomanO(n)O(n)Mediumordered processingMath, String
13Roman to IntegerO(n)O(1)Easyclean upMath, String
14Longest Common PrefixO(n*len(lcp))O(lcp)Easy-String
153SumO(n^2)O(1)Medium-Two Pointers, Arrays
163Sum ClosestO(n^2)O(1)Medium-Two Pointers, Arrays
17Letter Combinations of a Phone NumberO(~3^n)O(~3^n)Medium-Backtracking
184SumO(n^3)O(1)Medium-Two Pointers
19Remove Nth Node From End of ListO(n)O(1)Medium-Two Pointers, LinkedList
20Valid ParenthesesO(n)O(n)Easy-String, Stack
21Merge Two Sorted ListsO(m+n)O(1)Easy-LinkedList
22Generate ParenthesesO(Catalan Number)O(1)excluding opMedium-String, Backtracking
23Merge k Sorted ListsO(nlogk)O(k)HardTry constant space approachLinkedList, Heap, Divide and Conquer
24Swap Nodes in PairsO(n)O(1)Medium-LinkedList
25Reverse Nodes in k-Group
26Remove Duplicates from Sorted ArrayO(n)O(1)Easyin-placeTwo Pointers, Arrays
27Remove ElementO(n)O(1)Easyin-placeTwo Pointers, Arrays
28Implement strStr()Easyusing KMPTwo Pointers, String
29Divide Two IntegersO(log(dividend))O(1)Medium-Binary Search, Math
30Substring with Concatenation of All WordsHardHashMap, Two Pointers, String
Check out the Python directory for more...

About

A work in progress to solve leetcode problems and update the solutions in this repo.

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages