Skip to content

KaartikDev/leetcode-practice-sol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode-practice-sol

My solutions to leetcode and neetcode problems

LeetCode Practice Tracker

# Title Difficulty Pattern Status
1768 Merge Strings Alternately Easy Two Pointers / Strings
1431 Kids With the Greatest Number of Candies Easy Array / Comparison
605 Can Place Flowers Easy Array / Greedy
345 Reverse Vowels of a String Easy String
151 Reverse Words in a String Medium String / Two Pointers
238 Product of Array Except Self Medium Array / Prefix–Suffix
283 Move Zeroes Easy Array / Two Pointers
334 Increasing Triplet Subsequence Medium Array / Greedy
443 String Compression Medium Array / Two Pointers
392 Is Subsequence Easy Two Pointers
11 Container With Most Water Medium Two Pointers
1679 Max Number of K-Sum Pairs Medium Sorting / Two Pointers
643 Maximum Average Subarray I Easy Sliding Window / Array
1456 Max # of Vowels in a Substring of Length Medium Sliding Window / Strings
1004 Max Consecutive Ones III Medium Sliding Window / Two Pointers
1493 Longest Subarray of 1's After Deleting One Element Medium Sliding Window
1732 Find the Highest Altitude Easy Prefix Sum / Running Total
724 Find Pivot Index Easy Prefix Sum / Array
2215 Find the Difference of Two Arrays Easy Hash Set / Array
1207 Unique Number of Occurrences Easy Hash Map / Hash Set
1657 Determine if Two Strings Are Close Medium Hash Map / Frequency
2352 Equal Row and Column Pairs Medium Hash Map / Tuples / Matrix
2390 Removing Stars From a String Medium Stack / String
735 Asteroid Collision Medium Stack / Simulation
394 Decode String Medium Stack / String Parsing
933 Number of Recent Calls Easy Queue / Sliding Window
649 Dota2 Senate Medium Queues / Simulation / Greedy
2095 Delete the Middle Node of a Linked List Medium Linked List / Two Pointers
328 Odd Even Linked List Medium Linked List / Two Pointers
206 Reverse Linked List Easy Linked List
2130 Max Twin Sum of a Linked List Medium Linked List / Fast–Slow / In-place Reverse
104 Maximum Depth of Binary Tree Easy Tree / DFS / Recursion
872 Leaf-Similar Trees Easy Tree / Stack (Iterative Inorder DFS)
1448 Count Good Nodes in Binary Tree Medium Tree DFS / Stack
437 Path Sum III Medium Tree / DFS (Recursion, start-from-each-node)
1372 Longest ZigZag Path in a Binary Tree Medium Tree / DFS
236 Lowest Common Ancestor of a Binary Tree Medium Tree / DFS
199 Binary Tree Right Side View Medium Binary Tree / BFS
1161 Maximum Level Sum of a Binary Tree Medium Binary Tree / BFS
700 Search in a Binary Search Tree Easy BST / Iteration
450 Delete Node in a BST Medium BST / Recursion
88 Merge Sorted Array Easy Two Pointers / Array (from end)
841 Keys and Rooms Medium Graph / DFS (Stack)
547 Number of Provinces Medium Graph / DFS
695 Max Area of Island Medium Graph / DFS (Grid)

NeetCode 150

Title Difficulty Pattern Status
Valid Anagram Easy Hash / Freq Map
Two Sum Easy Hash Map / Array
Group Anagrams Medium Hash Map / Strings
Top K Frequent Elements Medium Hash Map / Bucket Sort
Encode and Decode Strings Medium Strings / Pointer
Valid Sudoku Medium 2D Array
Longest Consecutive Sequence Medium Hash Set / Linear Scan
Valid Palindrome Easy Two Pointers / Strings
Two Sum II Medium Two Pointers / Sorted
Trapping Rain Water Hard Two Pointers
Best Time to Buy and Sell Stock Easy Two Pointers / Window
Longest Substring Without Repeating Characters Medium Sliding Window
Longest Repeating Character Replacement Medium Sliding Window / Freq Map
Permutation in String Medium Sliding Window / Freq Map
Min Stack Medium Stack / Auxiliary Min Stack
Valid Parentheses Easy Stack / Matching
Evaluate Reverse Polish Notation Medium Stack / Evaluate
Generate Parentheses Medium Backtracking / Constraints

About

My solutions to leetcode problems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages