Product of Array Except Self (LeetCode 238) | Full solution with visuals | Study Algorithms

preview_player
Показать описание

A very important and an interesting problem that will assess your logical thinking skills. From an array find the product of all other elements except self. Watch this video to understand why the most obvious way to approach this problem will give you a wrong answer, and how can you come up with an efficient solution. Follow along with animations, visual aids and a dry-run of code in JAVA

Chapters:
00:00 - Intro
00:50 - Problem Statement and Test cases
03:05 - The most obvious way fails
06:33 - Thinking out of the box
10:55 - Dry-run of Code
12:57 - Final Thoughts

📚 Links to topics I talk about in the video:

📖 Reference Books:

🎥 My Recording Gear:

💻 Get Social 💻

#leetcode #programming #interview
Рекомендации по теме
Комментарии
Автор

Next level teaching sir !! You are literally a hidden gem!!

Sai-fnlq
Автор

Hi Sir,
Eveytime I am searching for a leeetcode problem, I add your name in the suffix hoping you have done a video on it. I have understood each and every video that I have watched. Please do solve all the problems, that will be very helpful for people like me.

abhigoku
Автор

Recently found your channel, whenever I don't understand neetcode solutions I come here. Thank you sir!

sianwa
Автор

thanks for the lucid explanation, you're a hidden gem :), you deserve way more subscribers

sivaramansankar
Автор

your explanation is so crisp and clear

dinildenny
Автор

Damn! You are the best man, there are many channels explaining this problem but you are able to transmit the thought process. Thank you!!!

Caro-dhql
Автор

Your explanation is so clear! I like how you draw out everything to explain it! Thank you

nataliechan
Автор

The best explanation I found in youtube!

alexandreneo
Автор

Man you are god 😭🙏 your explanation is outstanding 👏 you earned a subscriber today ❤️.

sameerdas
Автор

I usually don't comment but this kind of video I see my hands automatically goes in comment section for comment.
Thanks Nikhil you even demystified how dividing will give results, most of people don't know how dividing is giving the answer and thanks for explain postfix and prefix in detail.

kaushit
Автор

Very nice explanation, I really search your channel for Ds-algo questions . Thanks sir for teaching free.

meetshah
Автор

like always your explanation and video quality is awesome. i will try to share your videos as much as possible .

abhishekkeshri
Автор

Truly wonderful, Sir! Thank you so much for creating such a helpful video. I really appreciate your effort.

VinethaSathya
Автор

Thank you so much for explaining each line in a very simple manner.

TanujaNair-uu
Автор

THANK YOU, I TRIED VERY HARD BUT COULD NOT SOLVED. YOU CLEARED IT IN A MIN .❤❤❤❤❤❤

abhishekanand
Автор

Really good explanation. Clearly understood the concept. Thank you!

gameplays
Автор

Great explanation, This is the video I am searching for. Thanks

Code_Cracker-nr
Автор

Follow up: Can you solve the problem in O(1) extra space complexity? (The output array does not count as extra space for space complexity analysis.)

ashishgoyal
Автор

your video is really helpful Sir. Hope you do more problems and teach us.

vattuvattaram
Автор

Excellent explanation. I am so glad that I came across your YT channel

saisree
visit shbcf.ru