DEV Community

# leetcode

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
LeetCode Challenge: 6. Zigzag Conversion - JavaScript Solution 🚀

LeetCode Challenge: 6. Zigzag Conversion - JavaScript Solution 🚀

5
Comments
2 min read
3203. Find Minimum Diameter After Merging Two Trees

3203. Find Minimum Diameter After Merging Two Trees

Comments
5 min read
Efficiently Solving Two Sum II - Input Array Is Sorted

Efficiently Solving Two Sum II - Input Array Is Sorted

Comments
3 min read
2471. Minimum Number of Operations to Sort a Binary Tree by Level

2471. Minimum Number of Operations to Sort a Binary Tree by Level

Comments
5 min read
2940. Find Building Where Alice and Bob Can Meet

2940. Find Building Where Alice and Bob Can Meet

Comments
6 min read
2872. Maximum Number of K-Divisible Components

2872. Maximum Number of K-Divisible Components

Comments
6 min read
LeetCode Challenge: 12. Integer to Roman - JavaScript Solution 🚀

LeetCode Challenge: 12. Integer to Roman - JavaScript Solution 🚀

5
Comments 1
2 min read
2415. Reverse Odd Levels of Binary Tree

2415. Reverse Odd Levels of Binary Tree

Comments
5 min read
LeetCode Challenge: 151. Reverse Words in a String - JavaScript Solution 🚀

LeetCode Challenge: 151. Reverse Words in a String - JavaScript Solution 🚀

8
Comments 3
3 min read
769. Max Chunks To Make Sorted

769. Max Chunks To Make Sorted

Comments
3 min read
LeetCode Challenge: 42. Trapping Rain Water - JavaScript Solution 🚀

LeetCode Challenge: 42. Trapping Rain Water - JavaScript Solution 🚀

5
Comments 1
2 min read
LeetCode Challenge: 14. Longest Common Prefix - JavaScript Solution 🚀

LeetCode Challenge: 14. Longest Common Prefix - JavaScript Solution 🚀

7
Comments 1
2 min read
1475. Final Prices With a Special Discount in a Shop

1475. Final Prices With a Special Discount in a Shop

Comments
4 min read
Leetcode — 3190. Find Minimum Operations to Make All Elements Divisible by Three

Leetcode — 3190. Find Minimum Operations to Make All Elements Divisible by Three

1
Comments
1 min read
LeetCode Challenge: 58. Length of Last Word - JavaScript Solution🚀

LeetCode Challenge: 58. Length of Last Word - JavaScript Solution🚀

5
Comments 1
2 min read
3264. Final Array State After K Multiplication Operations I

3264. Final Array State After K Multiplication Operations I

Comments
3 min read
1792. Maximum Average Pass Ratio

1792. Maximum Average Pass Ratio

Comments
4 min read
2762. Continuous Subarrays

2762. Continuous Subarrays

Comments
3 min read
LeetCode Challenge: 238. Product of Array Except Self - JavaScript Solution 🚀

LeetCode Challenge: 238. Product of Array Except Self - JavaScript Solution 🚀

7
Comments 1
2 min read
2558. Take Gifts From the Richest Pile

2558. Take Gifts From the Richest Pile

Comments
4 min read
Binary Search || Python || Data Structures and Algorithms

Binary Search || Python || Data Structures and Algorithms

Comments
4 min read
2779. Maximum Beauty of an Array After Applying Operation

2779. Maximum Beauty of an Array After Applying Operation

Comments
3 min read
Job Scheduling Problem with Max Profit

Job Scheduling Problem with Max Profit

Comments
1 min read
2981. Find Longest Special Substring That Occurs Thrice I

2981. Find Longest Special Substring That Occurs Thrice I

1
Comments
3 min read
1760. Minimum Limit of Balls in a Bag

1760. Minimum Limit of Balls in a Bag

Comments
4 min read
Minimum No. of arrows to burst balloons

Minimum No. of arrows to burst balloons

Comments
1 min read
Non overlapping intervals

Non overlapping intervals

Comments
1 min read
How a LeetCode Problem Exposed a Gap in My Knowledge and Helped Me Understand Static and Non-Static Variables

How a LeetCode Problem Exposed a Gap in My Knowledge and Helped Me Understand Static and Non-Static Variables

Comments
4 min read
2554. Maximum Number of Integers to Choose From a Range I

2554. Maximum Number of Integers to Choose From a Range I

Comments
5 min read
Leetcode — 2769. Find the Maximum Achievable Number

Leetcode — 2769. Find the Maximum Achievable Number

Comments
1 min read
2825. Make String a Subsequence Using Cyclic Increments

2825. Make String a Subsequence Using Cyclic Increments

Comments
3 min read
Minimum number of platforms required

Minimum number of platforms required

Comments
1 min read
LeetCode Challenge: 134. Gas Station - JavaScript Solution 🚀

LeetCode Challenge: 134. Gas Station - JavaScript Solution 🚀

5
Comments 1
2 min read
2182. Construct String With Repeat Limit

2182. Construct String With Repeat Limit

1
Comments
4 min read
2097. Valid Arrangement of Pairs

2097. Valid Arrangement of Pairs

Comments
4 min read
2290. Minimum Obstacle Removal to Reach Corner

2290. Minimum Obstacle Removal to Reach Corner

Comments
4 min read
LeetCode Challenge: 13. Roman to Integer - JavaScript Solution 🚀

LeetCode Challenge: 13. Roman to Integer - JavaScript Solution 🚀

5
Comments 1
2 min read
3243. Shortest Distance After Road Addition Queries I

3243. Shortest Distance After Road Addition Queries I

Comments
5 min read
LeetCode in Swift - 2924. Find Champion II (中文解釋)

LeetCode in Swift - 2924. Find Champion II (中文解釋)

1
Comments
1 min read
2924. Find Champion II

2924. Find Champion II

Comments
4 min read
3152. Special Array II

3152. Special Array II

Comments
4 min read
How to NOT Create Leetcode Challenges

How to NOT Create Leetcode Challenges

Comments
4 min read
Understanding K Element Patterns in LeetCode: The Basics (Part 1)

Understanding K Element Patterns in LeetCode: The Basics (Part 1)

Comments
3 min read
LeetCode Challenge: 380. Insert Delete GetRandom O(1) - JavaScript Solution 🚀

LeetCode Challenge: 380. Insert Delete GetRandom O(1) - JavaScript Solution 🚀

10
Comments 2
3 min read
1072. Flip Columns For Maximum Number of Equal Rows

1072. Flip Columns For Maximum Number of Equal Rows

Comments
3 min read
The Gap That LeetCode's 30 Days of JavaScript Actually Fills

The Gap That LeetCode's 30 Days of JavaScript Actually Fills

1
Comments
9 min read
2257. Count Unguarded Cells in the Grid

2257. Count Unguarded Cells in the Grid

Comments
4 min read
2516. Take K of Each Character From Left and Right

2516. Take K of Each Character From Left and Right

Comments
4 min read
LeetCode Problem#03

LeetCode Problem#03

10
Comments
1 min read
2461. Maximum Sum of Distinct Subarrays With Length K

2461. Maximum Sum of Distinct Subarrays With Length K

Comments
4 min read
Greatest Common Divisor of Strings in Javascript

Greatest Common Divisor of Strings in Javascript

1
Comments
2 min read
862. Shortest Subarray with Sum at Least K

862. Shortest Subarray with Sum at Least K

Comments
3 min read
3254. Find the Power of K-Size Subarrays I

3254. Find the Power of K-Size Subarrays I

Comments
4 min read
1574. Shortest Subarray to be Removed to Make Array Sorted

1574. Shortest Subarray to be Removed to Make Array Sorted

Comments
3 min read
LeetCode Challenge: 135. Candy - JavaScript Solution 🍬

LeetCode Challenge: 135. Candy - JavaScript Solution 🍬

11
Comments 1
2 min read
Leetcode — Top Interview 150–125. Valid Palindrome

Leetcode — Top Interview 150–125. Valid Palindrome

Comments
2 min read
Leetcode #2.Add Two Numbers

Leetcode #2.Add Two Numbers

Comments
3 min read
Leetcode — Top Interview 150–121. Best Time to Buy and Sell Stock

Leetcode — Top Interview 150–121. Best Time to Buy and Sell Stock

Comments
2 min read
2563. Count the Number of Fair Pairs

2563. Count the Number of Fair Pairs

Comments
3 min read
Synchronizing Threads with Semaphores: Practicing Concurrency in Java - LeetCode Problem 1115, "Print FooBar Alternately"

Synchronizing Threads with Semaphores: Practicing Concurrency in Java - LeetCode Problem 1115, "Print FooBar Alternately"

1
Comments
3 min read
loading...