LeetCode 1518 - Water Bottles - Java

  Рет қаралды 54

Alpha-Code

Alpha-Code

Ай бұрын

Solution, explanation, and complexity for LeetCode 1518 in Java
Problem Description:
leetcode.com/problems/water-b...
Code:
github.com/AnatoliySokolov98/...

Пікірлер: 3
@juanmacias5922
@juanmacias5922 27 күн бұрын
I assumed I was missing a constant time math proof, but I guess simulation is the only way ha
@Alpha-Code
@Alpha-Code 27 күн бұрын
There is I think but it's not super intuitive :(
@juanmacias5922
@juanmacias5922 27 күн бұрын
@@Alpha-Code that makes sense. ha thanks for the video. :D
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 393 М.
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 87 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 36 МЛН
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 632 М.
1518. Water Bottles | O(1) time | Math | 2 Approaches
15:07
Aryan Mittal
Рет қаралды 3,6 М.
LeetCode 443: Water Bottles | Easiest to Understand
8:13
Comprehensive Code
Рет қаралды 124
330. Patching Array | Greedy | Array | Math | Why not Bitset Trick
23:19
Count Number of Nice Subarrays - Leetcode 1248 - Python
10:18
NeetCodeIO
Рет қаралды 11 М.
LeetCode 1530 - Number of Good Leaf Nodes Pairs - Java
21:11
Non-Decreasing Array - Leetcode 665 - Python
10:59
NeetCode
Рет қаралды 54 М.
LeetCode 2976 - Minimum Cost To Convert String I - Java
15:49
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 87 МЛН