it’s better if you’d have explained the intuition behind the aj/ai+aj formula which was not at all clear had to read the admin’s solution for it.
@Studying-ht3uz3 күн бұрын
Man this is one of the best explanations I've ever seen!
@ChirameTanishqArvind10 күн бұрын
did your code fail on TC 31 ?!
@Bikash_The_121 күн бұрын
5:42 if(n<=2) return false? or if(n<2) return false....is not 2 a prime number ,..
@vaibhavsingh8933Ай бұрын
how do we prove this though that if they have same id then ans is swap - 1
@rishabhmalhotra2225Ай бұрын
Dude whosoever you are. YOU ARE AWESOME!! If possible, can you make a video on ternary search.
@arthkulkarnihere727429 күн бұрын
Came from twitter🎉😂
@--TanjumulАй бұрын
All clear ! thank you sir
@RedRocAnimeАй бұрын
Any practice questions.
@RedRocAnimeАй бұрын
@Acodedaily is this course still available on KZbin. I an not abe to find hashing video.
@RedRocAnimeАй бұрын
How do i select problem from leetcode according to the roadmap. Should i just select tag and do bunch of easy medium and hards
@pankaj_buddyАй бұрын
getting wrong answer on tc - 2
@bhaveshchhimwal436Ай бұрын
Cool!
@saumay-z1Ай бұрын
Thankyou Bhaiya.
@chaitanyashahare27343 ай бұрын
I had a doubt does CPH judge submit works during contests? I was trying it during the last contest and it didn't seem to work for me. But on other problems it works like a charm. Great video, watching it for the 2nd time.
@akshatapatrot77733 ай бұрын
How to do this problem using visualogo? Please reply
@AkshaySharma-bg3oj3 ай бұрын
Hey dude, thanks for the video :)
@Jit_hiL3 ай бұрын
Which tools and devices you are using to draw this way?
@hussein-alemam3 ай бұрын
the extension is now available on chrome
@MdBinMonjurAzmine3 ай бұрын
Awsome!
@akshitbhola37903 ай бұрын
Where do I find the problem set?
@aaravsaini86873 ай бұрын
Best explanation on YT brother
@mdsajidanwar64163 ай бұрын
How to do for Java ?
@Dhruv-fn8yr4 ай бұрын
it is not working
@dhruvgoyal82144 ай бұрын
Not so a good explaination
@okay_ocus10314 ай бұрын
I know you might not answer but here is my doubt on D1: Suppose lastUsed variable tells which program is running on CPU1. Let's say a3 is running on cpu1 and a1 is running on cpu2. Now at i=4, we can see that a[i-1], i.e., a[3] is running on cpu1 but how can we comment what is running on cpu2?
@okay_ocus10314 ай бұрын
Now if a[i-1] was not running on cpu1 then we can obviously comment that it must be running on cpu2 but I am concerned about the case stated above.
@ARIHANTJAIN-tz1cm2 ай бұрын
Don't look it as programs on cpu1 and cpu2,look ot as program[i-1] and last program on other cpu,it doesn't matter which cpu had which program,hence u only need to know about programs in 2 diff cpu and not that which cpu had which program
21:35 bro came here to flex and get appreciation.. //that was visible throughout the conversation
@mriit30255 ай бұрын
thanks man, it makes my cpp coding 7000ms faster ⚡⚡⚡
@Hopoyage6 ай бұрын
thx,finally understand
@utsavaggrawal26976 ай бұрын
thanks
@arpitannd476 ай бұрын
Fyi, Kev became candidate master 😅 (I am not Kev btw)
@Acodedaily6 ай бұрын
iirc, I took his mock interview and he's in JPMC now!
@kevalvekariya24826 ай бұрын
Hey Pranav and Arpit, This really brings back memories of my previous summer, those CP grinds were well worth it. The mock interviews were amazing for me and I am glad I was able to connect with you (I am Kev btw 😃😃)
@ravipratap29006 ай бұрын
Note: (n-r)+1 ✅ (n-r+1) ❌
@chewbaccazombie24896 ай бұрын
okay but whats the answer to the question in the thumbnail?
@arghyabarannaskar64076 ай бұрын
Wow! what an explanation with drawings.... You are a very good teacher...
@anupdhoble28796 ай бұрын
Just a little doubt , can we consider any node as root node and answer will be same????
@kumartemp5 ай бұрын
nooooooo
@VishalYadav-gk1kg6 ай бұрын
Very nice explanation sir, Thank you!
@1_______5-j7t7 ай бұрын
Sir, I thought of an approach that if the count of the bits at particular point is 1 if it is greater than or equal to n then it's gonna fail because we can't make the number out of it. And I have taken care of the fact that it occurs in different numbers. but at the 2nd test case it give TLE
@chetan.s.bandurkar26907 ай бұрын
what for this test case n=5 3=1 2 3 3=1 2 3 4=1 2 3 4 3=1 2 3 3=1 2 3
@HarshitKumar-dj4ev7 ай бұрын
should it not be 1/1000, 1/999 and 1/998?
@agentlms74987 ай бұрын
Are you iit graduated??
@lakshyasharma37237 ай бұрын
Hey! may you help me why my code is showing wrong answer on test case 2 . Output of my code on wrong test case is same as yours, also on other test cases. #include<bits/stdc++.h> using namespace std; #define int long long vector<int>divisors(int n){vector<int>v;for(int i=1;i*i<=n;i++){if(n%i==0){if(n/i==i){v.push_back(i);}else {v.push_back(i);v.push_back(n/i);}}}sort(v.begin(),v.end());return v;} void func(){ int n; cin>>n; vector<int>v; v=divisors(n); int t=v.size(); int cnt=0; int j=0; // for(int i=0;i<t;i++)cout<<v[i]<<" ";cout<<endl; while(j<t){ cnt++; if(v[j]-v[j-1]>1){ break;//abababababa } j++; } // cout<<cnt<<endl; string s; char ch='a'; for(int i=0;i<n;i++){ // cout<<ch; s+=ch; ch+=1; if(ch-'a'>=cnt)ch='a'; } cout<<s<<endl; } signed main(){ int T=1; cin>>T; while(T--){ func(); } return 0; }
@sarder6817 ай бұрын
thanks man.
@OnlyAyushAgarwal7 ай бұрын
Nice
@SurajSingh-y3n3e7 ай бұрын
submit feature is only limited to Firefox :(
@cdgogi7 ай бұрын
I am currently learning Dsa(java) can i do cp (c++)also along with it
@VvekKrishna7 ай бұрын
Sir, please do upload the videos on prefix sum and recursion / dfs.....
@cpwithAkshat25018 ай бұрын
Well a brilliant video. Comprehensively covers everything for everyone. I think Creating KZbin shorts out of the answers to the questions would help in increasing the growth of this channel even further.
@cpwithAkshat25018 ай бұрын
I can help in making shorts if you require an editor