LeetCode 1482 - Minimum Days to Make M Bouquets - Java

  Рет қаралды 237

Alpha-Code

Alpha-Code

Ай бұрын

Solution, explanation, and complexity analysis for LeetCode 1482 in Java
Problem Description:
leetcode.com/problems/minimum...
Code:
github.com/AnatoliySokolov98/...

Пікірлер: 6
@sunshinekanika5797
@sunshinekanika5797 Ай бұрын
would sliding windows make it concise or possible that way?
@Alpha-Code
@Alpha-Code Ай бұрын
I don't think you can do sliding windows cause you don't know the range of numbers you can have in the window is the issue. That's why bin search is better.
@mituldwivedi4469
@mituldwivedi4469 Ай бұрын
i got the time limit exceed through your code , please help me!!
@Alpha-Code
@Alpha-Code Ай бұрын
which one the Java code? They all seem to be working for me so I think it's an issue on your end.
@mituldwivedi4469
@mituldwivedi4469 Ай бұрын
@@Alpha-Code my bad I interchanged the left and right pointers 🥲🥲
@juanmacias5922
@juanmacias5922 Ай бұрын
@@Alpha-Code personally I messed up by incrementing/decrementing by one, and not by the middle + or - 1 lol
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 58 МЛН
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 36 МЛН
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН
LeetCode 826 - Most Profit Assigning Work - Java
12:12
Alpha-Code
Рет қаралды 236
BS-13. Minimum days to make M bouquets | Binary Search
26:01
take U forward
Рет қаралды 117 М.
Leetcode 46. Permutations : Introduction to backtracking
10:06
ComputerBread
Рет қаралды 90 М.
330. Patching Array | Greedy | Array | Math | Why not Bitset Trick
23:19
Water powered timers hidden in public restrooms
13:12
Steve Mould
Рет қаралды 696 М.
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 153 М.
8 patterns to solve 80% Leetcode problems
7:30
Sahil & Sarra
Рет қаралды 283 М.
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 393 М.
LeetCode 1530 - Number of Good Leaf Nodes Pairs - Java
21:11
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 58 МЛН