Skip to content

I will share my solutions and thoughts for every Leetcode question I solve. Some solutions are my interpretations of other people's solution. I also share other people's solution if they're more optimal than mine (with the link). This repo is used to record my journey on leetcode.

License

Notifications You must be signed in to change notification settings

StevenWanglolz/My_Leetcode_Journey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Leetcode Journey

  • I share my solutions and thoughts for every Leetcode question I solve.

  • Some solutions are my interpretations of other people's solution because I could not solve the problem in time.

  • Not every solution is written by m .

  • If I find a better solution, I will include it into my repository including the link to the original solution.

  • This repository is used to record my journey on Leetcode.

# Title Tags Solution Difficulty
1 Two Sum Hash Table Python, C++ Easy
20 Valid Parentheses String Python, C++ Easy
36 Valid Sudoku Array, Hash table Python, C++/ Medium
49 Group Anagrams Hash Table, Sorting Python, C++ Medium
128 Longest Consecutive Sequence Array, Hash table, Union find Python, C++ Medium
217 [Contains Duplicates](https://leetcode.com/problems/ ontains-duplicate/description/) Hash Table Python, C++ Easy
238 Product of Array Except Self Array, Prefix sum Python, C++ Medium
242 Valid Anagram Hash Table, String Python, C++ Easy
344 Reverse String Two pointers Python, C++ Easy
347 Top K Frequent Elements Hash Table, Bucket Sort, Heap, Divide and conquer Python, C++ Medium
442 Find All Duplicates In An Array Array, Hash Table Python, C++ Medium
535 Encode and Decode TinyURL Hash table Python, C++ Medium
557 Reverse Words in a String III Two pointers, string, (stack) Python, C++ Easy
(F)763 Partion Labels Hashmaps, two pointers Python, C++ Medium
771 Jewels And Stones Hash table Python, C++ Easy
804 Unique Morse Code Words Python, C++ Easy
832 Flipping an Image Python, C++ array, two pointers, bit manipulation, matrix Easy
905 Sort Array By Parity Two pointers Python, C++ Easy
942 DI String Match Two pointers, string Python, C++ Easy
977 Squares of a Sorted Array Two pointers, sorting Python, C++ Easy
1108 Defanging an IP Address PythonC++ Easy
1221 Split a String in Balanced Strings Python, C++ Easy
1282 Group the People Given the Group Size They Belong To python, C++ Medium
1332 Remove Palindromic Subsequences Two pointers, string Python, C++ East
1347 Minimum Number of Steps to Make Two Strings Anagram Python, C++ Medium
1365 How Many Numbers Are Smaller Than the Current Number Python, C++ Easy
1470 Shuffle the Array Python, C++ Easy
1476 Subrectangle Queries Python, C++ Medium
1512 Number of Good Pairs Python, C++ Easy
1528 Shuffle String Python, C++ Easy
1630 Arithmetic Subarrays Python, C++ Medium
1637 Widest Vertical Area Between Two Points Containing No Points Python, C++ Easy
1656 Design an Ordered Stream Python, C++ Easy
1662 Check If Two String Arrays are Equivalent Python, C++ Easy
1672 Richest Customer Wealth Python, C++ Easy
1678 Goal Parser Interpretation Python, C++ Easy
1768 Merge Strings Alternately Two pointers, string Python, C++ Easy
1769 Minimum Number of Operations to Move All Balls to Each Box Python, C++ medium
1773 Count Items Matching a Rule Python, C++ Easy
1684 Count the Number of Consistent Strings Python, C++ Easy
1689 Partitioning Into Minimum Number Of Deci-Binary Python, C++ Medium
1816 Truncate Sentence Python, C++ Easy
1832 Check if the Sentence Is Pangram Python, C++ Easy
1877 Minimize Maximum Pair Sum in Array Sorting, two pointers Python, C++ Medium
1920 Build Array from Permutation Python, C++ Easy
1929 Concatenation of Array Python, C++ Easy
2000 Reverse Prefix of Word Two pointers, string Python, C++ Easy
2006 Count Number of Pairs With Absolute Difference K Python, C++ Easy
2011 Final Valueof Variable After Performing Operations Python, C++ Easy
2103 Rings and Rods Python, C++ Easy
2108 Find First Palindromic String in the Array Python, C++ Easy
2114 Maximum Number of Words Found in Sentences Python, C++ Easy
2125 Number of Laser Beams in a Bank Python, C++ Medium
2149 Rearrange Array Elements by Sign Python, C++ Medium
2161 Partition Array According to Given Pivot Python, C++ Medium
2194 Cells in a Range on an Excel Sheet Python, C++ Easy
2325 Decode The Message Python, C++ Easy
2367 Number of Arithmetic Triplets Python, C++ Easy
2391 Minimum Amount of Time to Collect Garbage Python, C++ Medium
2396 Strictly Palindromic Number Python, C++ Medium
2433 Find The Original Array of Prefix Xor Python, C++ Medium
2610 Convert an Array Into a 2D Array With Conditions Python, C++ Medium
2657 Find the Prefix Common Array of Two Arrays Python, C++ Medium
2697 Lexicographically Smallest Palindrome Two pointers Python, C++ Easy
2744 Find Maximum Number of String Pairs Python, C++ Easy
2750 Merge Two 2D Arrays by Summing Values Two pointers, Hash table Python, C++ Easy
2798 Number of Employees Who Met the Target Python, C++ Easy
2824 Count Pairs Whose Sum is Less than Target Python, C++ Easy
2913 Subarrays Distinct Element Sum of Squares I Python, C++ Easy
2942 Find Words Containing Character Python, C++ Easy
2956 Find Common Elements Between Two Arrays Python, C++ Easy

About

I will share my solutions and thoughts for every Leetcode question I solve. Some solutions are my interpretations of other people's solution. I also share other people's solution if they're more optimal than mine (with the link). This repo is used to record my journey on leetcode.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published