Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fcaponetto/leetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

58 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

NeverCry's Solutions

LeetCode Stats Card

Last Update: 9/16/2025, 5:39:46 AM

Solutions

Problem Difficulty Tags Solution
1. Two Sum πŸ”— Easy Array, Hash Table cpp
3. Longest Substring Without Repeating Characters πŸ”— Medium Hash Table, String, Sliding Window python3
5. Longest Palindromic Substring πŸ”— Medium Two Pointers, String, Dynamic Programming python3
11. Container With Most Water πŸ”— Medium Array, Two Pointers, Greedy cpp
15. 3Sum πŸ”— Medium Array, Two Pointers, Sorting cpp | python3
20. Valid Parentheses πŸ”— Easy String, Stack python3
21. Merge Two Sorted Lists πŸ”— Easy Linked List, Recursion python3
23. Merge k Sorted Lists πŸ”— Hard Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort python3
39. Combination Sum πŸ”— Medium Array, Backtracking python3
49. Group Anagrams πŸ”— Medium Array, Hash Table, String, Sorting cpp | python
50. Pow(x, n) πŸ”— Medium Math, Recursion python3
70. Climbing Stairs πŸ”— Easy Math, Dynamic Programming, Memoization python3
74. Search a 2D Matrix πŸ”— Medium Array, Binary Search, Matrix cpp
78. Subsets πŸ”— Medium Array, Backtracking, Bit Manipulation python3
79. Word Search πŸ”— Medium Array, String, Backtracking, Depth-First Search, Matrix python3
112. Path Sum πŸ”— Easy Tree, Depth-First Search, Breadth-First Search, Binary Tree python3
121. Best Time to Buy and Sell Stock πŸ”— Easy Array, Dynamic Programming python3
125. Valid Palindrome πŸ”— Easy Two Pointers, String python3
128. Longest Consecutive Sequence πŸ”— Medium Array, Hash Table, Union Find python3
133. Clone Graph πŸ”— Medium Hash Table, Depth-First Search, Breadth-First Search, Graph cpp
139. Word Break πŸ”— Medium Array, Hash Table, String, Dynamic Programming, Trie, Memoization python3
167. Two Sum II - Input Array Is Sorted πŸ”— Medium Array, Two Pointers, Binary Search python3
200. Number of Islands πŸ”— Medium Array, Depth-First Search, Breadth-First Search, Union Find, Matrix cpp
208. Implement Trie (Prefix Tree) πŸ”— Medium Hash Table, String, Design, Trie python3
209. Minimum Size Subarray Sum πŸ”— Medium Array, Binary Search, Sliding Window, Prefix Sum python3
217. Contains Duplicate πŸ”— Easy Array, Hash Table, Sorting python3
219. Contains Duplicate II πŸ”— Easy Array, Hash Table, Sliding Window python3
226. Invert Binary Tree πŸ”— Easy Tree, Depth-First Search, Breadth-First Search, Binary Tree python3
230. Kth Smallest Element in a BST πŸ”— Medium Tree, Depth-First Search, Binary Search Tree, Binary Tree python3
238. Product of Array Except Self πŸ”— Medium Array, Prefix Sum python3
242. Valid Anagram πŸ”— Easy Hash Table, String, Sorting python
268. Missing Number πŸ”— Easy Array, Hash Table, Math, Binary Search, Bit Manipulation, Sorting python3
303. Range Sum Query - Immutable πŸ”— Easy Array, Design, Prefix Sum python3
332. Reconstruct Itinerary πŸ”— Hard Depth-First Search, Graph, Eulerian Circuit cpp | java
341. Flatten Nested List Iterator πŸ”— Medium Stack, Tree, Depth-First Search, Design, Queue, Iterator cpp
344. Reverse String πŸ”— Easy Two Pointers, String cpp | python3
347. Top K Frequent Elements πŸ”— Medium Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect python3
417. Pacific Atlantic Water Flow πŸ”— Medium Array, Depth-First Search, Breadth-First Search, Matrix cpp
424. Longest Repeating Character Replacement πŸ”— Medium Hash Table, String, Sliding Window python3
456. 132 Pattern πŸ”— Medium Array, Binary Search, Stack, Monotonic Stack, Ordered Set cpp
463. Island Perimeter πŸ”— Easy Array, Depth-First Search, Breadth-First Search, Matrix cpp
547. Number of Provinces πŸ”— Medium Depth-First Search, Breadth-First Search, Union Find, Graph cpp
561. Array Partition πŸ”— Easy Array, Greedy, Sorting, Counting Sort python3
567. Permutation in String πŸ”— Medium Hash Table, Two Pointers, String, Sliding Window python3
695. Max Area of Island πŸ”— Medium Array, Depth-First Search, Breadth-First Search, Union Find, Matrix cpp
724. Find Pivot Index πŸ”— Easy Array, Prefix Sum cpp
739. Daily Temperatures πŸ”— Medium Array, Stack, Monotonic Stack python3
743. Network Delay Time πŸ”— Medium Depth-First Search, Breadth-First Search, Graph, Heap (Priority Queue), Shortest Path cpp
797. All Paths From Source to Target πŸ”— Medium Backtracking, Depth-First Search, Breadth-First Search, Graph cpp
853. Car Fleet πŸ”— Medium Array, Stack, Sorting, Monotonic Stack python3
874. Walking Robot Simulation πŸ”— Medium Array, Hash Table, Simulation cpp
875. Koko Eating Bananas πŸ”— Medium Array, Binary Search python3 | python
994. Rotting Oranges πŸ”— Medium Array, Breadth-First Search, Matrix cpp | python3
1091. Shortest Path in Binary Matrix πŸ”— Medium Array, Breadth-First Search, Matrix cpp
1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold πŸ”— Medium Array, Sliding Window python3
1491. Average Salary Excluding the Minimum and Maximum Salary πŸ”— Easy Array, Sorting cpp
1514. Path with Maximum Probability πŸ”— Medium Array, Graph, Heap (Priority Queue), Shortest Path cpp
1550. Three Consecutive Odds πŸ”— Easy Array python3
1971. Find if Path Exists in Graph πŸ”— Easy Depth-First Search, Breadth-First Search, Union Find, Graph cpp

About

My solutions (mostly in Python) for various Leetcode challenges that I tackle from time to time.

Topics

Resources

Stars

Watchers

Forks

Contributors