/Leetcode-Solutions

some Leetcode code I wrote

Primary LanguagePython

Leetcode Solutions

Thanks @Ri-Hong for introducing me to the Leetcode T-shirt
Thanks @Celeste04 and @xuserena12 for dragging me back into Leetcode

Every Kotlin Solution

Because Ri has something against Kotlin

Problem Solution
Design Parking System Solution
Design HashSet Solution
Design Underground System Solution
Count Negative Numbers in a Sorted Matrix Solution
Find Smallest Letter Greater Than Target Solution
Find the Highest Altitude Solution

Every Racket Solution

Because Ri doesn't like Racket either

Problem Solution
Pow(x, n) Solution

Challenges

Little challenge I decided to agree to

Part 1: Math 239

30/30

Count Problem Solution
1 Reverse Linked List Solution
2 Find All Duplicates in an Array Solution
3 Score of a String Solution
4 Minimum Rectangles to Cover Points Solution
5 Sum of Left Leaves Solution
6 Latest Time You Can Obtain After Replacing Characters Solution
7 Sum Root to Leaf Numbers Solution
8 Count the Number of Special Characters I Solution
9 Count the Number of Special Characters II Solution
10 Find if Path Exists in Graph Solution
11 N-th Tribonacci Number Solution
12 Max Consecutive Ones Solution
13 Squares of a Sorted Array Solution
14 Third Maximum Number Solution
15 Find All Numbers Dsiappeared in An Array Solution
16 Valid Mountain Array Solution
17 Find the Integer Added to the Array Solution
18 Reverse Prefix of Word Solution
19 Largest Positive Integer That Exists With Its Negative Solution
20 Compare Version Numbers Solution
21 Check if Grid Satisfies Conditions Solution
22 Permutation Difference between Two Strings Solution
23 Valid Word Solution
24 Evaluate Boolean Binary Tree Solution
25 Delete Leaves With a Given Value Solution
26 Special Array I Solution
27 Find the XOR of Numbers Which Appear Twice Solution
28 Find Occurences of an Element in an Array Solution
29 Find the Number of Good Pairs Solution
30 String Compression III Solution

Part 2: CS 240

/42

Count Problem Solution
1 Special Array With X Elements Greater Than or Equal X Solution
2 Single Number III Solution
3 Reverse String Solution
4 Minimum Number of Chairs in a Waiting Room Solution
5 Longest Palindrome Solution
6 Clear Digits Solution
7 Find the Child Who Has the Ball After K Seconds Solution
8 Sort Colors Solution
9 Minimum Number of Moves to Seat Everyone Solution
10 Count Pairs That Form a Complete Day I Solution
11 Sum of Square Numbers Solution
12 Find Minimum Operations to Make All Elements Divisible by Three Solution
13 Minimum Average of Smallest and Largest Elements Solution
14 Find the Minimum Area to Cover All Ones I Solution
15 Find Center of Star Graph Solution
16 Maximum Height of a Triangle Solution
17 Three Consecutive Odds Solution
18 Merge Nodes in Between Zeros Solution
19 Average Waiting Time Solution
20 Crawler Log Folder Solution
21 Find the Winning Player in Coin Game Solution
22 Number of Bit Changes to Make Two Integers Equal Solution
23 Find if Digit Game Can Be Won Solution
24 Number of Senior Citizens Solution
25 Find the Number of Winning Players Solution
26 Make Two Arrays Equal by Reversing Subarrays Solution
27 Design Neighbor Sum Service Solution
28 Kth Distinct String in an Array Solution
29 Minimum Number of Pushes to Type Word II Solution
30 Snake in Matrix Solution
31 N-ary Tree Postorder Traversal Solution
32 Find the Key of the Numbers Solution
33 Check if Two Chessboard Squares Have the Same Color Solution
34 Convert 1D Array Into 2D Array Solution
35 Find the Student that Will Replace the Chalk Solution
36 Sum of Digit of String After Convert Solution
37 Find Missing Observations Solution