1518. Water Bottles | O(1) time | Math | 2 Approaches

  Рет қаралды 3,602

Aryan Mittal

Aryan Mittal

26 күн бұрын

In this video, I'll talk about how to solve Leetcode 1518. Water Bottles | O(1) time | Math | 2 Approaches
Water Bottle II - • Video
Let's Connect:
📱Discord (Join Community) : / discord
📝Linkedin: / aryan-mittal-0077
📸 Instagram: / codewitharyanbhai
💻 Twitter - / aryan_mittal007
🤖 Github: github.com/aryan-0077
About Me:
I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
✨ Hashtags ✨
#programming #Interviews #leetcode #faang #maang #datastructures #algorithms

Пікірлер: 20
@Jazzimus
@Jazzimus 24 күн бұрын
extremely intuitive explanation for the O(1) soln
@naamnhibataunga5897
@naamnhibataunga5897 24 күн бұрын
It was challenging to come up with O(1) solution 😅😅
@amitpandey9610
@amitpandey9610 23 күн бұрын
Great explaination for O(1) approach
@srinivaskoruprolu7638
@srinivaskoruprolu7638 24 күн бұрын
Wow great approach 💯🎉❤ Thank you so much Aryan
@amarnathgarai
@amarnathgarai 24 күн бұрын
Damm i never think of it, Great Explanation
@nitigyajoshi4658
@nitigyajoshi4658 23 күн бұрын
Nice explanation
@AarohiniAEIE-sd9lu
@AarohiniAEIE-sd9lu 23 күн бұрын
perfect explanation! ❤
@xaxaxaxaxaxa7768
@xaxaxaxaxaxa7768 23 күн бұрын
thanks a lot bro
@lokesh8660
@lokesh8660 24 күн бұрын
bro we need a solution for that binary string without adjacent zeroes using binary number system properties, I noticed that if we given n bits , then it lies between n-1 bits to n bits within these after every perfect 2 powers or 2^n-1 - i is a perfect 2 power we need to skip some numbers ...can you please provide a solution for this , most of the solutions involve recursion and backtracking
@ankurverma4042
@ankurverma4042 24 күн бұрын
Start making videos on GFG POTD's
@coderunner743
@coderunner743 24 күн бұрын
bro i have doubts. if the same question is asked like this "for each exchange we get 2 full water bottles" then we can use this formula numBottles + (numBottles - 2) / (numExchange - 2) right?
@zebra-er6xc
@zebra-er6xc 23 күн бұрын
yes, we will search for number of (ne-2) groups in this case and keep 2 bottles aside from original nb
@Cosmo_Gamer
@Cosmo_Gamer 23 күн бұрын
no its minus 1 allways
@JIGARSINGTHAKOR-yy6qp
@JIGARSINGTHAKOR-yy6qp 24 күн бұрын
D of weekly??
@khushal7363
@khushal7363 23 күн бұрын
solution for weekly contest bcd ?
@ARYANMITTAL
@ARYANMITTAL 21 күн бұрын
Ye lo ji ❤️ - kzbin.info/www/bejne/eaTNZ2iHibiVY5Y
@himanshuchaudhari3505
@himanshuchaudhari3505 24 күн бұрын
bhai nai samja
@Cosmo_Gamer
@Cosmo_Gamer 23 күн бұрын
Explanation not deep i think u copy pasted it
@junkman631
@junkman631 23 күн бұрын
The O(N) explanation was really good. Finally understood.
@Cosmo_Gamer
@Cosmo_Gamer 23 күн бұрын
@@junkman631 first approach was simple 💀
5 Math Skills Every Programmer Needs
9:08
Sahil & Sarra
Рет қаралды 1 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 14 МЛН
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 34 МЛН
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 3,4 МЛН
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 382 М.
Final Verdict on MNCs Vs Startups!
11:35
Striver
Рет қаралды 64 М.
The LeetCode Fallacy
6:08
NeetCode
Рет қаралды 456 М.
The Harsh Reality of Being a Data Engineer
14:21
Jash Radia
Рет қаралды 225 М.
The Last Algorithms Course You'll Need by ThePrimeagen | Preview
16:44
Frontend Masters
Рет қаралды 312 М.
❌ Don't Run Behind 500 LEETCODE Problems ❌ Focus on QPCD
8:31
Nature's Incredible ROTATING MOTOR (It’s Electric!) - Smarter Every Day 300
29:37
How LinkedIn improved their latency by 60%
10:00
Arpit Bhayani
Рет қаралды 40 М.
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 14 МЛН