Skip to content

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

Notifications You must be signed in to change notification settings

fcaponetto/leetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeverCry's Solutions

LeetCode Stats Card

Last Update: 8/4/2024, 1:39:04 AM

Solutions

Problem Difficulty Tags Solution
1. Two Sum 🔗 Easy Array, Hash Table cpp
11. Container With Most Water 🔗 Medium Array, Two Pointers, Greedy cpp
15. 3Sum 🔗 Medium Array, Two Pointers, Sorting cpp
39. Combination Sum 🔗 Medium Array, Backtracking python3
49. Group Anagrams 🔗 Medium Array, Hash Table, String, Sorting cpp | python
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, 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
133. Clone Graph 🔗 Medium Hash Table, Depth-First Search, Breadth-First Search, Graph cpp
167. Two Sum II - Input Array Is Sorted 🔗 Medium Array, Two Pointers, Binary Search python3
209. Minimum Size Subarray Sum 🔗 Medium Array, Binary Search, Sliding Window, Prefix Sum 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
242. Valid Anagram 🔗 Easy Hash Table, String, Sorting python
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
456. 132 Pattern 🔗 Medium Array, Binary Search, Stack, Monotonic Stack, Ordered Set 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
724. Find Pivot Index 🔗 Easy Array, Prefix Sum cpp
739. Daily Temperatures 🔗 Medium Array, Stack, Monotonic Stack python3
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
875. Koko Eating Bananas 🔗 Medium Array, Binary Search python3 | python
994. Rotting Oranges 🔗 Medium Array, Breadth-First Search, Matrix python3
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
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