Very good explanation..better way of explaining than the editorial.. thanks a lot for this
@arjunprasad10712 жыл бұрын
Great explanation !! So much better than the editorial.
@codeExplainer2 жыл бұрын
Glad it was helpful!
@sumeetubale39232 жыл бұрын
very nice explaination sir!!
@codeExplainer2 жыл бұрын
Thanks for liking
@softwarelanguages83243 жыл бұрын
Thank you so much for the explaination man Really helped me
@codeExplainer3 жыл бұрын
Glad it helped
@Pooh__7__3 жыл бұрын
very nice explanation , codeforces editorial was quiet hard to understand
@codeExplainer3 жыл бұрын
thank you so much
@ranaabhijeet497 Жыл бұрын
Is this question related to book allocation problem in which we have to allocate minimum no. Of pages
@anshshah49273 жыл бұрын
A was done B was almost done just messed up the formula part of adding minimum number
@codeExplainer3 жыл бұрын
ohh, you always learn new things along the way.
@sober_junkie57097 ай бұрын
very good approach, the direct formulaic answer on the editorial wasn't that good.
@motivation_hubPJ3 жыл бұрын
Can you please tell why would this solution won't work : public static void solve(int n,int k){ if(n==k)System.out.println("1"); else if(k==1)System.out.println(n); else if(n==1)System.out.println(k); else{ int max=2; while(true){ if(n*max>=k)break; max++; } System.out.println(max); } }
@adityaprakash72283 жыл бұрын
if k==1 then also ans=1.
@rajmittal53942 жыл бұрын
Sir but here if n is greater than k than possible ans is always either 1 and 2 We don't have any code for this Better work
@mahipalsingh-yo4jt3 жыл бұрын
good explanation..!!!!!!!
@codeExplainer3 жыл бұрын
Glad you liked it
@ambarjaiswal7713 жыл бұрын
I did the problem A and B but the problem A was hacked what's that mean?
@codeExplainer3 жыл бұрын
it means there are some test case your code is missing and some other coder hacked your problem. It means some other coder run your code on some other test case which was not on pretest and your code gives wrong ans , and thus it got hacked.
@motivation_hubPJ3 жыл бұрын
I Wasn't able to do both i felt a lot tough the first problem itself