If u can lets say do the procedure with power as 2( the min power), couldnt you also have done it with power 3, 4 ... any power more than the the min answer. I am not saying that mid will be one of the answer for sure, if it is not, then answer must lie to its right, else either mid is the min power or some power to the left of it is the min power.
noice question read krte hi bs mind mei aagya but implement nhi hua btw nice explanation
Binary search was not necessary
Just greedily arrange the caves using max found for each
why you've taken s=1,e=2e9?
How do you practise the maths behind competitive programming?
I haven't done anything special to prepare for it. Things like combinatorics i haven't revised since JEE.
can i get some edge cases, my soln is giving me (correct ans + 1) output for only some cases otherwise its giving correct output
why are u taking mid as a power how can u make sure that mid will be one of the power??
If u can lets say do the procedure with power as 2( the min power), couldnt you also have done it with power 3, 4 ... any power more than the the min answer. I am not saying that mid will be one of the answer for sure, if it is not, then answer must lie to its right, else either mid is the min power or some power to the left of it is the min power.
@@suvankarbanerjee6048 i think i have taken if(currPower
Nice explanation but binary search ke bina bhi hota ig
Aur aap win 11 daal lo taskbar X nhi lagega then 🌟
daala tha par aadhi cheeze chalna band hogyi 😥
@@divyanshtyagi4312 mera toh sahi chal rha 😅
@@arka6302 🤔🤔
D solution??
I have uploaded it !
Can you explain B too?
I have uploaded it, I was not planning on making it before so i just rushed over the concept.
Gawd D1 D2 ka bhi kuch kriye hum noobs ke lie.
👀👀
@@divyanshtyagi4312 Sir leetcode strange printer pe bhi aisi he video bna dijiye.... Gareebo ki dua lgegi.
@@kunalsinghal3558 ab aapko leetcode karne ki kya zaroorat hai :P
Han vai TCS C++ vs Java puchti h vhi yaad kr rha hu abhi 🙂
@@kunalsinghal3558 zaroor zaroor 👀
nicely explained:)
Thanks ❤️