This is absolutely the best explanation on KZbin. Everyone else goes straight to coding and doesn't break down the logic beforehand.
@nikoo282 жыл бұрын
Happy that I could help :)
@AKASH-fe6vy14 күн бұрын
So nice of you to put this in a simple yet insightful manner, thanks a lot.
@billyfigueroa16177 ай бұрын
Excellent content. This is the second video I watch which allows one to be able to devise a nicer solution simply by sorting the array. The hash map solution is genius and is not complicated I will now, always look at a problem and find out how I can solve it by first thinking "Would sorting this array help to simplify the solution"
@nikoo287 ай бұрын
Awesome, thank you!
@billyfigueroa16177 ай бұрын
@@nikoo28 you are welcomed
@ayushtalks2.02 жыл бұрын
One of the best way of teaching . Sir Keep posting more videos of dsa. 👍👍
@nikoo282 жыл бұрын
Thank you so much for your support :)
@Spear_of_Boudicca14 күн бұрын
Good video, very similar to my university lectures. I think the reason a lot of people fail to learn some things on their own is that they just see code and want to understand it magically, you need to get the logic behind stuff.
@wenkaiyang148711 ай бұрын
thank you soooo much! I checked out so many videos about this question. finally your video helped me out! firmly subscribed to your channel
@aman_rockstar312 ай бұрын
you r really an excellent teacher one thing i want to tell ur explanation is better that striver thanks for providing such videos
@Karan-ow4wl7 күн бұрын
Best Video Explanation so far !!!
@Rockstar-162 жыл бұрын
Sir😄, I have no words, I have never seen anyone explain this nicley, thank you so much❤
@nikoo28 Жыл бұрын
Thank you so much for your kind words.
@harihardhik3293 Жыл бұрын
Such a great way of explaining this problem. You have redefined teaching sir!!! Amazing Work!!!!
@nikoo2811 ай бұрын
Thanks a ton
@yowanehakuuu Жыл бұрын
I watched two other videos before coming here , to be honest you are the best one . I only understand from you because other people talk too long without explaining they talk about the problem not the solution. You even taught me the math side of this . Thank you , I subscribed. I will watch the rest of the solutions
@nikoo2811 ай бұрын
I prefer to focus on the problem. Language is a tool anyway, and they will keep changing and evolving. Thanks for the sub!!
@bobbysokhi72962 ай бұрын
Underrated channel.
@sarthakgadge52232 ай бұрын
Thanks a lot, I was able to understand this problem thanks to your efforts.
@sahilhansofficial Жыл бұрын
Love the way you teach, TYSM☺
@elizabeth006534 ай бұрын
Thank you for taking the time to create this video and make a clear explanation
@pooja37119 ай бұрын
you are the best.I really appreciate your hard work and step-by-step approach to how to overcome with a solution. Hats off
@nikoo289 ай бұрын
thanks for the appreciation and motivation :)
@brahmithegod95582 жыл бұрын
I was searching for the solution but do not found dryryn but u did it thank bro ❤️
@shacks-b3b8 ай бұрын
Please keep uploading DSA/leetcode videos, they all are really helpful, thanks!
@nikoo287 ай бұрын
More to come!
@KaisarAnvar Жыл бұрын
You're by far the most detailed explainer I've seen. I've seen a few, but you're really amazing. Having a coding interview soon.
@nikoo28 Жыл бұрын
All the very best for your upcoming interviews :)
@joshuajacobs6855 Жыл бұрын
Only just got into coding a few days ago coming from a teacher background. Great explanations!
@RajKumar-li8dc Жыл бұрын
Best way to teach sir plz discuss more question and make a proper playlist ❤❤❤
@nikoo28 Жыл бұрын
Check out my playlists in the channel :)
@kishanbhadoriya87019 ай бұрын
Thank you very much, finally understood
@bivinnandhu781 Жыл бұрын
Thank you bro you do grate things your explanation is very simple and easy to understand Iam so happy to see this video
@nikoo28 Жыл бұрын
so happy to read this
@japaneseger2 жыл бұрын
You explained it very well, best video out there regarding this solution!!"!!!!
@TV-wk7oo Жыл бұрын
Thank you, you are the best! Visualizing the code helped me a lot
@nikoo28 Жыл бұрын
You're welcome!
@1tav02 жыл бұрын
Thank you for the video it really helped me!
@girdharipatel2 Жыл бұрын
your explanation is for more better than other youtuber
@nikoo28 Жыл бұрын
Glad you feel that way :D
@206_dindayalpatra36 ай бұрын
Thank you ❤
@malkitsaggu2 ай бұрын
Best explanation 👌
@coldcases_214 күн бұрын
sir @nikoo28 ,there is a mistake in two pointer approch i think where if => num1 and num2 are the same (e.g., nums = [3,3], target = 6), so code will return the same index for both numbers, especially if there are duplicates in the original array. for ex nums = [3,3] target = 6 Output [1,1] Expected [0,1] which is wrong so should we apply something else here?
@dineshpatil66982 жыл бұрын
such clear explantion , subscribed
@AbhishekRamola-u7y3 ай бұрын
Kudos! Great explanation brother.P.s: Bro, you sound exactly like Pennywise from It.
@pulastyadas33512 жыл бұрын
awesome explanation..keep teaching us
@manjunathakaliwalLife_Atlanta8 ай бұрын
Good one
@aniketpurohit76018 ай бұрын
Amazing
@prakharpathak5899 Жыл бұрын
Very smooth sir
@sanjeewagunarathna19902 жыл бұрын
Great video best explanation
@AkaNuclear5 ай бұрын
For the second solution where we are using hashmap, the time complexity of finding an element is also O(n) in case of hash collisions
@nikoo285 ай бұрын
For a very big input size, yes there will be collisions…but for the domain of this problem you should be just fine. Good to discuss this with your interviewer though 😄
@kunalkheeva2 жыл бұрын
thank you for a great explanation, what would be its space complexity?
@nikoo282 жыл бұрын
Which solution do you want the space complexity for? :)
@04.nehalsingh122 жыл бұрын
awesome tutorial sir
@anchalsoni86143 жыл бұрын
awesome video... keep making them
@juledoc_07 Жыл бұрын
I had a question about the tastable, 19-4 is 15, but it is on the table so why don't we stop there? Thank you
@Samtoosoon4 ай бұрын
Best
@jst89228 ай бұрын
06:03 - Method 1: Using Sorting This is basically sliding window solution, when you have two pointers , left and right and you move them correspondingly.
@dipanwitasahoo66436 ай бұрын
Is this possible using binary search?
@lipovgaming724529 күн бұрын
but how do you return 2 elements.
@sunnyrajesh5 ай бұрын
Hello I have a small doubt ? How we return two index values here map.get(complement),i); Can any one explain 🤔 does it return complement index and current I value ?
@im_andre6dev5610 ай бұрын
Hi Nikhil, what program do you use to draw the solution?
@nikoo289 ай бұрын
GoodNotes 6
@Programming-for-all-u2l8 ай бұрын
I do not know why he gets very few likes and he is the best teacher for explaining the leetcode problems
@nikoo287 ай бұрын
so happy you believe in me. Please share the videos if possible. Trying my best with SEO to get ranked up in search results.
@ashishsoniiАй бұрын
Brother don't stop making leetcode questions@@nikoo28
@ganesang721710 ай бұрын
its cool
@ymhuang6512 жыл бұрын
Awesome channel! Why I Find it so late?
@nikoo282 жыл бұрын
Glad I could help you 😄
@karthik-varma-15796 ай бұрын
AT 10:31 the method is not working for negative numbers in the array;
@nikoo286 ай бұрын
the optimized method takes care of all different test cases
@karthik-varma-15796 ай бұрын
@@nikoo28 Ohk Thanks Sir
@sushant35302 жыл бұрын
Sir will 3rd Method will work if array has Duplicate elements . Becoz in HashMap , the key cannot be duplicate. And if array elements repeats , they duplicate key is found. PLZZZZ PLZZ EXPLIAN THIS SIR
@nikoo282 жыл бұрын
since the problem says you will have EXACTLY ONE SOLUTION, you do not need to worry about duplicate number. Because if a duplicate number exists, then you will have 2 possible solutions...and hence that is not a valid scenario.
@ashishkumaryadav7701 Жыл бұрын
@@nikoo28 but in the example there is repetitive element
@RapJunkie3 ай бұрын
@@nikoo28 we have a valid scenario [3,3], and this method won't work :(
@powerball200 Жыл бұрын
bro plz do in python
@shwetamandal6616 Жыл бұрын
what is this """'' return new int[]{map.get(complement),i}; """" ? as it throws error and i am getting you've used curly brackets with new int[]...................please reply..........................
@nikoo28 Жыл бұрын
It gets the complement pair and then returns it as an array.
@IorgaArtStudio3 жыл бұрын
subbed!
@kashmirviews43325 ай бұрын
Can anybody tell how to write the main function code for the same function.
@nikoo285 ай бұрын
Just create an object of the class and call it in the main method
@kashmirviews43325 ай бұрын
@@nikoo28 thanks.
@ME022GopinathanAsokan9 ай бұрын
sir what language you are used here
@nikoo289 ай бұрын
Java
@ashishsoniiАй бұрын
Dont stop DSA questions
@abhinavd2 Жыл бұрын
100
@YNKeerthi-ry6jx6 ай бұрын
koko eating banana 875 leetcode question
@nikoo285 ай бұрын
It is available now: kzbin.info/www/bejne/gHi8iYGmj8aKaLcsi=2ftslOTD1LCE8-r2