LeetCode Python & Java Solutions: Code + Algorithms Explained | LCPython.comLCJava.comLCcpp.com

LeetCode Problem & Solution Link Difficulty Supported Languages Approaches Expl. Detail
344. Reverse String
Easy
Step by Step
27. Remove Element
Easy
2 Methods Step by Step
704. Binary Search
Easy
Step by Step
977. Squares of a Sorted Array
Easy
2 Methods Step by Step
59. Spiral Matrix II
Medium
Step by Step
209. Minimum Size Subarray Sum
Medium
Step by Step
303. Range Sum Query - Immutable
Easy
2 Methods Step by Step
503. Next Greater Element II
Medium
Simplified Steps
203. Remove Linked List Elements
Easy
Step by Step
206. Reverse Linked List
Easy
Step by Step
160. Intersection of Two Linked Lists
Easy
Step by Step
19. Remove Nth Node From End of List
Medium
Step by Step
707. Design Linked List
Medium
Step by Step
24. Swap Nodes in Pairs
Medium
Step by Step
349. Intersection of Two Arrays
Easy
Step by Step
242. Valid Anagram
Easy
Step by Step
1. Two Sum
Easy
3 Methods Step by Step
383. Ransom Note
Easy
Step by Step
202. Happy Number
Easy
Step by Step
454. 4Sum II
Medium
Step by Step
15. 3Sum
Medium
2 Methods Step by Step
28. Find the Index of the First Occurrence in a String
Easy
Step by Step
541. Reverse String II
Easy
Step by Step
459. Repeated Substring Pattern
Easy
Step by Step
18. 4Sum
Medium
Step by Step
232. Implement Queue using Stacks
Easy
Step by Step
20. Valid Parentheses
Easy
Step by Step
225. Implement Stack using Queues
Easy
3 Methods Step by Step
509. Fibonacci Number
Easy
3 Methods Simplified Steps
198. House Robber
Medium
Only Answer
213. House Robber II
Medium
Only Answer
337. House Robber III
Medium
2 Methods Only Answer
416. Partition Equal Subset Sum
Medium
2 Methods Step by Step
1049. Last Stone Weight II
Medium
2 Methods Step by Step
494. Target Sum
Medium
Step by Step
474. Ones and Zeroes
Medium
Step by Step
518. Coin Change II
Medium
Only Answer
377. Combination Sum IV
Medium
Only Answer
322. Coin Change
Medium
Only Answer
279. Perfect Squares
Medium
Only Answer
139. Word Break
Medium
Only Answer
121. Best Time to Buy and Sell Stock
Easy
Only Answer
122. Best Time to Buy and Sell Stock II
Medium
Only Answer
714. Best Time to Buy and Sell Stock with Transactio...
Medium
Only Answer
123. Best Time to Buy and Sell Stock III
Hard
Only Answer
188. Best Time to Buy and Sell Stock IV
Hard
Only Answer
309. Best Time to Buy and Sell Stock with Cooldown
Medium
Only Answer
674. Longest Continuous Increasing Subsequence
Easy
Only Answer
300. Longest Increasing Subsequence
Medium
Only Answer
718. Maximum Length of Repeated Subarray
Medium
Only Answer
1143. Longest Common Subsequence
Medium
Only Answer
1035. Uncrossed Lines
Medium
Only Answer
53. Maximum Subarray
Medium
2 Methods Step by Step
392. Is Subsequence
Medium
2 Methods Step by Step
583. Delete Operation for Two Strings
Medium
Step by Step
72. Edit Distance
Medium
Step by Step
739. Daily Temperatures
Medium
Only Answer
496. Next Greater Element I
Easy
Only Answer
42. Trapping Rain Water
Hard
Simplified Steps
84. Largest Rectangle in Histogram
Hard
Simplified Steps
797. All Paths From Source to Target
Medium
2 Methods Step by Step
200. Number of Islands
Medium
3 Methods Step by Step
463. Island Perimeter
Easy
2 Methods Step by Step
695. Max Area of Island
Medium
3 Methods Step by Step
827. Making A Large Island
Hard
2 Methods Step by Step
127. Word Ladder
Hard
Simplified Steps
1971. Find if Path Exists in Graph
Easy
2 Methods Step by Step
684. Redundant Connection
Medium
Step by Step
685. Redundant Connection II
Hard
Step by Step
1584. Min Cost to Connect All Points
Medium
2 Methods Step by Step
207. Course Schedule
Medium
2 Methods Step by Step
1514. Path with Maximum Probability
Medium
2 Methods Simplified Steps
752. Open the Lock
Medium
2 Methods Simplified Steps
433. Minimum Genetic Mutation
Medium
3 Methods Simplified Steps
743. Network Delay Time
Medium
2 Methods Simplified Steps
787. Cheapest Flights Within K Stops
Medium
Simplified Steps
1334. Find the City With the Smallest Number of Neig...
Medium
Only Answer
144. Binary Tree Preorder Traversal
Easy
2 Methods Only Answer
3478. Choose K Elements With Maximum Sum
Medium
Step by Step
49. Group Anagrams
Medium
Only Answer
833. Find And Replace in String
Medium
Step by Step
3494. Find the Minimum Amount of Time to Brew Potions
Medium
Step by Step
5. Longest Palindromic Substring
Medium
Step by Step