Bhaiya Making Towers wala bhi bta dena....using DP🤗
@VivekSharma-qw5ky2 жыл бұрын
but do we need DP in that question?
@sleekrings6202 жыл бұрын
@@VivekSharma-qw5ky Actually not....We can just make an adjacency list for all colours.....and print its size in the end which is basically blocks height
@VivekSharma-qw5ky2 жыл бұрын
@@sleekrings620 ohkay
@ashishkumaryadav52522 жыл бұрын
Sir if possible please upload video solution of today's codechef contest, for problem "ACCURATE XOR", it will be very helpful.
@codingcommunitynewtonschoo85822 жыл бұрын
Hi Ashish ! I was going to upload, but due to wifi issues I couldn't upload it. Now , I might not be able to uplaod it. Looking forward to upload today's educational codecforces round solutions...
@ashishkumaryadav52522 жыл бұрын
@@codingcommunitynewtonschoo8582 No issues sir, i understand you try your best but sometimes it is not possible to upload.
@ashishkumaryadav52522 жыл бұрын
@@codingcommunitynewtonschoo8582 Sir if possible problem C
@tejastank20032 жыл бұрын
Pls upload solution of d1 problem
@prashantgupta23392 жыл бұрын
Can we do this using DP
@shubhanshukumarsingh61332 жыл бұрын
it will be better if u write the fully functioal code in your laptop
@codingcommunitynewtonschoo85822 жыл бұрын
Hi Shubhanshu ! I understand if I write fully functional code on laptop it would be better, but what I think is that after seeing the implementation part in the video if you try to implement it by yourself it will give more confidence to you. So thats the thinking behind not writing full code. But I also provide fully functional code in the comments, so you may also have a look there in case you need any help. I hope you got the point.
@Nikhilsainiharidwar2 жыл бұрын
Pleased Explain problem B
@TarunKumar-cn6in2 жыл бұрын
Waiting for today's B
@ashishkumaryadav52522 жыл бұрын
Sir if possible please upload today's codeforces contest solution problem B
@codingcommunitynewtonschoo85822 жыл бұрын
Uploaded.
@ashishkumaryadav52522 жыл бұрын
@@codingcommunitynewtonschoo8582 Thanks
@KaranMashru2 жыл бұрын
#include using namespace std; #define ll long long int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); ll t, n, i, j, ans, sum; cin>>t; for(;t--;) { cin>>n; ans=0; ll h[n]; for(i=0; i>h[i]; } if((n%2)==1){ for(i=1; i