AniketTheProgrammer
Home
(current)
Courses
Projects
YT Projects
Coding Questions
Notification
Contact Us
Log In
All Topics
C Language
C++ Language
Greedy Algorithm
Hashing
Java Language
Linked List
Python
Queue
Stack
String
Sorting
Searching
Recursion
Backtracking
Dynamic Programming
Graph Theory
Bit Manipulation
Mathematics
Sliding Window Technique
Divide And Conquer
Matrix Manipulation
Two Pointers
Binary Tree
Topic: Two-pointers-question / Level: Advanced
401. Find the longest substring that contains at most k characters that are not vowels.
402. Implement a function to find the longest subarray with at most k distinct integers.
403. Given a sorted array, find the minimum difference between any two elements.
404. Count the number of ways to partition an array into two subsets such that the sum of each subset is equal.
405. Find the longest increasing subsequence of a string considering only alphabetical characters.
406. Determine the maximum length of a subarray that sums to zero.
407. Given a string, find the longest palindromic substring that can be obtained by removing at most k characters.
408. Check if two strings are permutations of each other by character frequency.
409. Find the longest substring of a string that contains at most one repeating character.
410. Determine the maximum product of a subarray of size k.
411. Check if a binary tree is a valid BST using the two-pointer technique.
412. Count the number of subarrays that satisfy the condition of being divisible by a given number.
413. Find the smallest window in a string that contains all characters of another string.
414. Determine if there exists a continuous subarray of size at least k whose sum is equal to a given number.
415. Check if a string can be formed by rearranging characters of another string with at least one character difference.
416. Find the longest sequence of non-decreasing integers in an array.
417. Count the number of distinct triplets in an array that sum to a target value.
418. Implement a function to find the minimum number of characters to delete to make two strings anagrams of each other.
419. Given a circular linked list, determine if it has a cycle using two pointers.
420. Find the maximum area of a rectangle in a histogram using the two-pointer technique.
421. Calculate the number of valid combinations of brackets using a two-pointer approach.
422. Determine if two strings can be made equal by swapping two characters.
423. Find the longest subsequence that can be formed from two strings with at most one edit distance.
424. Given an array of integers, find the maximum product of any three integers.
425. Check if a sequence of numbers can form a geometric progression.
426. Count the number of palindromic substrings in a string using dynamic programming and two pointers.
427. Find the longest substring that contains all unique characters and a minimum length.
428. Implement a function to find the intersection of two linked lists.
429. Count the number of substrings that contain at least one character c.
430. Given a 2D matrix, find the maximum sum of any subarray using the two-pointer approach.
Previous
1
2
3
4
5
6
Next
More Levels
Beginner
Intermediate
Most Visited
Implement a function to find the longest valid parentheses substring using the two-pointer technique.
Given a list of integers, find two numbers such that they add up to a specific target.
Implement a function to find the longest common substring.
Given two strings, check if they can be made equal by rearranging characters.
Calculate the longest substring of a string that contains no more than two vowels.
Given an array, determine if it can be partitioned into two subsets with equal sum.
Given two arrays, find the intersection of both.
Implement a function to check if two strings can be made identical by rearranging.
Find the minimum number of operations to convert one string into another.
Given two strings, check if they are anagrams of each other ignoring whitespace.
Check if a binary tree is a valid BST using the two-pointer technique.
Implement a function to find the longest valid parentheses substring using a stack and two pointers.
Remove duplicates from a sorted array and return the new length.
Given a string, find all unique permutations of the characters.
Calculate the minimum number of deletions needed to make two strings anagrams.