Skip to content

Leetcode solutions in Python 🐍 and TypeScript

License

Notifications You must be signed in to change notification settings

vkazakevich/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Language Update

Python solution for LeetCode

The repository contains the best versions of my solutions to LeetCode problems using Python3 and TypeScript.

Solutions TypeScript

# Title Solution Time Space
1814 Count Nice Pairs in an Array TypeScript O(n) O(n)
2 Add Two Numbers TypeScript O(n) O(n)

Solutions Python

# Title Solution Time Space
217 Contains Duplicate Python O(n) O(n)
53 Maximum Subarray Python O(n) O(1)
1 Two Sum Python O(n^2) O(1)
88 Merge Sorted Array Python O(n + k) O(k)
1480 Running Sum of 1d Array Python O(n) O(1)