Skip to content

Prev/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

LeetCode

LeetCode Problem Solving in Python.

# Title Difficulty Solution
1 Two Sum 👍 Easy O(n^2), O(n)
2 Add Two Numbers Medium O(n)
3 Longest Substring Without Repeating Characters Medium O(n^2), O(n)
4 Median of Two Sorted Arrays Hard O(n), O(log(n))
5 Longest Palindromic Substring Medium O(n^2)
6 ZigZag Conversion 👍 Medium O(n)
7 Reverse Integer 🤦 Easy O(1)
8 String to Integer (atoi) 🤦 Medium O(n)
9 Palindrome Number Easy O(n)
10 Regular Expression Matching Hard O(n^2)
11 Container With Most Water Medium O(n)
12 Integer to Roman Medium O(1)
13 Roman to Integer Easy O(1)
14 Longest Common Prefix Easy O(n^2)
15 3Sum 👍 Medium O(n^2)
16 3Sum Closest 👍 Medium O(n^2)
17 Letter Combinations of a Phone Number Medium O(1)
18 4Sum Medium O(n^3)
19 Remove Nth Node From End of List Medium O(n)
20 Valid Parentheses Easy O(n)
21 Merge Two Sorted Lists Easy O(n)
22 Generate Parentheses Medium Sol
23 Merge k Sorted Lists 👍 Hard O(nlogn)
24 Swap Nodes in Pairs Medium O(n)
25 Reverse Nodes in k-Group Hard O(n)
26 Remove Duplicates from Sorted Array Easy O(n)
27 Remove Element Easy O(n)
28 Implement strStr() 🤦 Easy O(n^2)
29 Divide Two Integers 🤦 Medium O(1)
30 Substring with Concatenation of All Words Hard O(nmlogm)
31 Next Permutation Medium O(nlogn)
32 Longest Valid Parentheses 👍 Hard O(n)
33 Search in Rotated Sorted Array Medium O(logn)
34 Find First and Last Position of Element in Sorted Array Medium O(logn)
35 Search Insert Position Easy O(logn)
36 Valid Sudoku Medium O(1)
37 Sudoku Solver Hard Sol
38 Count and Say Medium O(2^n)
39 Combination Sum 👍 Medium O(nm)
40 Combination Sum II Medium O(2^n)
41 First Missing Positive 👍 Hard O(n), O(nlogn)
42 Trapping Rain Water 👍 Hard O(n)
43 Multiply Strings Medium O(nm)
44 Wildcard Matching Hard O(nm)
45 Jump Game II Medium O(n^2)
46 Permutations Medium O(n!)
47 Permutations II Medium O(n!)
48 Rotate Image Medium O(n^2)
49 Group Anagrams Medium O(nmlogm)
50 Pow(x, n) 🤦 Medium O(1)

Problems with 👍 are recommended by me.
Problems with 🤦 have more downvotes than upvotes in leetcode and I agreed to that the problem is not that good.

About

LeetCode Problem Solving in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages