Skip to content

A work in progress directory for Leetcode questions

spencerjcooley/Leetcode-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Python Leetcode Solutions

This repository is a constant work in progress which has all my solutions for Leetcode problems as I go through them. All solutions have passed the Leetcode testcases, have a time and space complexity listed (they may be incorrect), and a performance timer.

DISCLAIMER: These solutions may not be the most optimal, they are simply the best I have come up with.

Completed Problems

Code Name Dfficulty Acceptance
0001 Two Sum Easy 55.7%
0049 Group Anagrams Medium 70.9%
0217 Contains Duplicate Easy 63.2%
0238 Product of Array Except Self Medium 67.7%
0242 Valid Anagram Easy 66.6%
0347 Top K Frequent Elements Medium 64.5%
0412 Fizz Buzz Easy 74.3%
0434 Number of Segments in a String Easy 36.4%
0771 Jewels and Stones Easy 89.2%
0876 Middle of the Linked List Easy 80.5%
1108 Defanging an IP Address Easy 89.7%
1342 Number of Steps to Reduce a Number to Zero Easy 85.6%
1432 Max Difference You Can Get From Changing an Integer Medium 44.9%
1480 Running Sum of 1D Array Easy 87.0%
1512 Number of Good Pairs Easy 89.6%
1672 Richest Customer Wealth Easy 88.6%
1742 Maximum Numer of Balls in a Box Easy 74.2%
1769 Minimum Number of Operations to Move All Balls to Each Box Medium 90.1%
1920 Build Array from Permutation Easy 91.1%
1929 Concatenation of Array Easy 90.5%
2011 Final Value of Variable After Performing Operations Easy 89.6%
2016 Maximum Difference Between Increasing Elements Easy 60.8%
2161 Partition Array According to Given Pivot Medium 89.9%
2235 Add Two Integers Easy 88.2%
2236 Root Equals Sum of Children Easy 84.9%
2469 Convert the Temperature Easy 90.1%
2566 Maximum Difference by Remapping a Digit Easy 72.7%
2769 Find the Maximum Achievable Number Easy 90.9%
3038 Maximum Number of Operations With the Same Score I Easy 51.9%
3110 Score of a String Easy 91.9%
3423 Maximum Difference Between Adjacent Elements in a Circular Array Easy 76.0%
3442 Maximum Difference Between Even and Odd Frequency I Easy 61.3%
3576 Transform Array to All Equal Elements Medium 61.3%

About

A work in progress directory for Leetcode questions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages