Skip to content

Latest commit

 

History

History
80 lines (69 loc) · 6.87 KB

README.md

File metadata and controls

80 lines (69 loc) · 6.87 KB

LeetCode

Welcome to my LeetCode problems practice repository!

Array & Strings

# Problem Difficulty Solution
345 Reverse Vowels of a String Easy Python
605 Can Place Flowers Easy Python
1431 Kids With the Greatest Number of Candies Easy Python
1768 Merge Strings Alternately Easy Python
2073 Time Needed to Buy Tickets Easy Python
151 Reverse Words in a String Medium Python
238 Product of Array Except Self Medium Python
443 String Compression Medium Python

Binary Search Tree

# Problem Difficulty Solution
700 Search in a Binary Search Tree Easy Python
872 Leaf Similar Trees Easy Python
450 Delete Node in a BST Medium Python
2385 Amount of Time for Binary Tree to Be Infected Medium Python

Binary Search

# Problem Difficulty Solution
374 Guess Number Higher or Lower Medium Python
2300 Successful Pairs of Spells and Potions Medium Python

Bit Manipulation

# Problem Difficulty Solution
136 Single Number Easy Python
338 Counting Bits Easy Python
1318 Minimum Flips to Make a OR b Equal to c Medium Python

DP - 1D

# Problem Difficulty Solution
1137 N-th Tribonacci Number Easy Python
746 Min Cost Climbing Stairs Easy Python
198 House Robber Medium Python
790 Domino and Tromino Tiling Medium Python

Graph - DFS

# Problem Difficulty Solution
547 Number of Provinces Medium Python (Not finished)
841 Keys and Rooms Medium Python

Hash Map / Set

# Problem Difficulty Solution
1207 Unique Number of Occurrences Easy Python, C++
2215 Find the Difference of Two Arrays Easy Python, C++
1657 Determine if Two Strings Are Close Mediun Python
2352 Equal Row and Column Pairs Medium Python

Linked List

# Problem Difficulty Solution
206 Reverse Linked List Easy Python
19 Remove the Nth Node From End of List Medium Python
328 Odd Even Linked List Medium Python
2095 Delete the Middle Node of a Linked List Medium Python
2130 Maximum Twin Sum of a Linked List Medium Python

Sliding Window

# Problem Difficulty Solution
643 Maximum Average Subarray I Easy Python

Two pointers

# Problem Difficulty Solution
283 Move Zeroes Easy Python
392 Is Subsequence Easy Python
11 Move Zeroes Medium Python
1679 Max Number of K-Sum Pairs Medium Python