two-pointers

Longest Word in Dictionary through Deleting LeetCode Solution

Here, We see Longest Word in Dictionary through Deleting LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Longest Word in Dictionary through Deleting LeetCode Solution Problem Statement Given a string s and a string array dictionary, return the longest string in the […]

Longest Word in Dictionary through Deleting LeetCode Solution Read More »

Leetcode Solution

Minimum Size Subarray Sum LeetCode Solution

Here, We see Minimum Size Subarray Sum LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Minimum Size Subarray Sum LeetCode Solution Problem Statement Given an array of positive integers nums and a positive integer target, return the minimal length of a  subarray whose sum is

Minimum Size Subarray Sum LeetCode Solution Read More »

Leetcode Solution

Find the Duplicate Number LeetCode Solution

Here, We see Find the Duplicate Number LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Find the Duplicate Number LeetCode Solution Problem Statement Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive.

Find the Duplicate Number LeetCode Solution Read More »

Leetcode Solution

3Sum Closest LeetCode Solution

Here, We see 3Sum Closest LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution 3Sum Closest LeetCode Solution Problem Statement Given an integer array nums of length n and an integer target, find three integers in nums such that the sum is closest to target. Return the sum

3Sum Closest LeetCode Solution Read More »

Leetcode Solution

Container With Most Water LeetCode Solution

Here, We see Container With Most Water LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Container With Most Water LeetCode Solution Problem Statement You are given an integer array height of length n. There are n vertical lines drawn such that the two

Container With Most Water LeetCode Solution Read More »

Leetcode Solution

K-diff Pairs in an Array LeetCode Solution

Here, We see K-diff Pairs in an Array LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution K-diff Pairs in an Array LeetCode Solution Problem Statement Given an array of integers nums and an integer k, return the number of unique k-diff pairs in the

K-diff Pairs in an Array LeetCode Solution Read More »

Leetcode Solution

Longest Repeating Character Replacement LeetCode Solution

Here, We see Longest Repeating Character Replacement LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Longest Repeating Character Replacement LeetCode Solution Problem Statement You are given a string s and an integer k. You can choose any character of the string

Longest Repeating Character Replacement LeetCode Solution Read More »

Leetcode Solution

Permutation in String LeetCode Solution

Here, We see Permutation in String LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Permutation in String LeetCode Solution Problem Statement Given two strings s1 and s2, return true if s2 contains a permutation of s1, or false otherwise. In other words, return true if one of s1’s permutations is the

Permutation in String LeetCode Solution Read More »

Leetcode Solution

Populating Next Right Pointers in Each Node LeetCode Solution

Here, We see Populating Next Right Pointers in Each Node LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Populating Next Right Pointers in Each Node LeetCode Solution Problem Statement You are given a perfect binary tree where all leaves are

Populating Next Right Pointers in Each Node LeetCode Solution Read More »

Leetcode Solution

Smallest Range Covering Elements from K Lists LeetCode Solution

Here, We see Smallest Range Covering Elements from K Lists LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Smallest Range Covering Elements from K Lists LeetCode Solution Problem Statement You have k lists of sorted integers in non-decreasing order. Find the smallest range that

Smallest Range Covering Elements from K Lists LeetCode Solution Read More »

Leetcode Solution

Max Chunks To Make Sorted II LeetCode Solution

Here, We see Max Chunks To Make Sorted II LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Max Chunks To Make Sorted II LeetCode Solution Problem Statement You are given an integer array arr. We split arr into some number of chunks (i.e.,

Max Chunks To Make Sorted II LeetCode Solution Read More »

Leetcode Solution

Minimum Window Substring LeetCode Solution

Here, We see Minimum Window Substring LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Minimum Window Substring LeetCode Solution Problem Statement Given two strings s and t of lengths m and n respectively, return the minimum window substring

Minimum Window Substring LeetCode Solution Read More »

Leetcode Solution

Partition List LeetCode Solution

Here, We see Partition List LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Partition List LeetCode Solution Problem Statement Given the head of a linked list and a value x, partition it such that all nodes less than

Partition List LeetCode Solution Read More »

Leetcode Solution

Remove Duplicates from Sorted Array II LeetCode Solution

Here, We see Remove Duplicates from Sorted Array II LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Remove Duplicates from Sorted Array II LeetCode Solution Problem Statement Given an integer array nums sorted in non-decreasing order, remove some

Remove Duplicates from Sorted Array II LeetCode Solution Read More »

Leetcode Solution

Sort Colors LeetCode Solution

Here, We see Sort Colors LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Sort Colors LeetCode Solution Problem Statement Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of

Sort Colors LeetCode Solution Read More »

Leetcode Solution
Scroll to Top