0 like 0 dislike
20,048 views

retagged | 20,048 views

0 like 0 dislike

Author of this sheet : https://www.linkedin.com/in/kumark1/

Desi QnA Two-Pointers Sheet (Make sure to go through set A and set B to have a good preparation level for an interview)

------------------------------------------------------------------------------------------------------------------

1)First things first , make sure you go through the Hashing Sheet(complete SET-A and SET-B) before you start this sheet.

2)Go through the concept from here : https://www.geeksforgeeks.org/two-pointers-technique/

4)Watch this video :

5)Now , it’s the time to start solving some problems. Make sure to solve Set-A and Set-B . Set-C is for the ones who want to reach expert level in the topic.

Set-A : (These problems may involve a mixture of Hashing and Two-Pointers , so make sure you go through the Hashing Sheet of Desi QnA mentioned above).

Set - B :

(Only focus on method1 of the solution.)

P2 : Find the number of pairs in the array whose sum is greater than equal to k. 'k' is the fixed value provided in the input.

(For Warmup-purpose)

(Important to understand the concept)

(Very Important)

(Enjoy this easy problem if you have come this far ;))

P15 : https://leetcode.com/problems/find-the-longest-equal-subarray/ (please solve this problem)

Set - C : Coming Soon!

Nice readings to go through :

.

ii)Coming Soon!

by Expert (109,220 points)
edited