Leetcode Solutions
Solving problems on leetcode and writing lessons on Stepik
My Software Contributions (2084+ lines of code, 28+ lessons):
During Research (1,951 lines of code)
Remove Duplicates from a Sorted Array
- Number of solutions: 5 solutions
- Total lines of code: 96 lines of code
Plus One
- Number of solutions: 6 solutions
- Total lines of code: 149 lines of code
Pascal's Triangle
- Number of solutions: 5 solutions
- Total lines of code: 152 lines of code
Pascal's Triangle II
- Number of solutions: 3 solutions
- Total lines of code: 58 lines of code
Third Maximum Number
- Number of solutions: 4 solutions
- Total lines of code: 92 lines of code
Add Strings
- Number of solutions: 3 solutions
- Total lines of code: 79 lines of code
Most Common Word
- Number of solutions: 3 solutions
- Total lines of code: 191 lines of code
Length of Last Word
- Number of solutions: 2 solutions
- Total lines of code: 38 lines of code
Reverse String
- Number of solutions: 4 solutions
- Total lines of code: 48 lines of code
Reverse Vowels of a String
- Number of solutions: 1 solutions
- Total lines of code: 32 lines of code
Count and Say
- Number of solutions: 4 solutions
- Total lines of code: 129 lines of code
Defanging an IP Address
- Number of solutions: 2 solutions
- Total lines of code: 30 lines of code
Longest Common Prefix
- Number of solutions: 2 solutions
- Total lines of code: 40 lines of code
Reverse Words in a String III
- Number of solutions: 3 solutions
- Total lines of code: 71 lines of code
Valid Palindrome
- Number of solutions: 2 solutions
- Total lines of code: 40 lines of code
Valid Palindrome II
- Number of solutions: 3 solutions
- Total lines of code: 90 lines of code
Implement strStr()
- Number of solutions: 1 solution
- Total lines of code: 15 lines of code
Roman to Integer
- Number of solutions: 2 solutions
- Total lines of code: 75 lines of code
Subdomain Visit Count
- Number of solutions: 2 solutions
- Total lines of code: 84 lines of code
Single Number
- Number of solutions: 3 solutions
- Total lines of code: 41 lines of code
Count Primes
- Number of solutions: 3 solutions
- Total lines of code: 66 lines of code
Intersection of Two Arrays
- Number of solutions: 3 solutions
- Total lines of code: 66 lines of code
Intersection of Two Arrays II
- Number of solutions: 2 solutions
- Total lines of code: 33 lines of code
Bulls and Cows
- Number of solutions: 3 solutions
- Total lines of code: 49 lines of code
Word Pattern
- Number of solutions: 2 solutions
- Total lines of code: 43 lines of code
Maximum Number of Balloons
- Number of solutions: 2 solutions
- Total lines of code: 36 lines of code
Longest Word in Dictionary
- Number of solutions: 2 solutions
- Total lines of code: 65 lines of code
Longest Harmonious Subsequence
- Number of solutions: 2 solutions
- Total lines of code: 43 lines of code
During Volunteer Period (2,084+ lines of code)
Copy List with Random Pointer
- Number of solutions: 3 solutions
- Total lines of code: 133 lines of code