Hi MIK, I couldn't solve any Qn. Even Easy one was also very tricky to me. But I will upsolve them now. Thanks for the explanation.
@Ramneet04 Жыл бұрын
I did this in one go, both the questions. Did the optimal one. Didn't use map in first question and used vector and did sorting in the second question. And here what I did in my first question where there is No need of map we can do only by a for loop. Int curr=1; Int ans=0; For(int i=0;i
@imPriyansh775 ай бұрын
I used Max-Heap Priority Queue
@arkojeetbera8584 Жыл бұрын
Eagerly waiting for prob4: count no. of houses at a certain distance II
@FanIQQuiz Жыл бұрын
Yayyyyy contest videos are here.....Thanks a lot.
@durgeshkushwaha253411 ай бұрын
Really great explanation❤❤
@souvikadhikary2429 Жыл бұрын
i took 2 hrs to solve this question. still not pass all tcs huge respect man such a awsome doubt solver
MIK bhaiya pls upload weekly and bi weekly contest soln pls as the way you explain any problem give me more clarity about the topic
@priyanshuprajapat8822 Жыл бұрын
Very Well Explained❤🔥
@beenasatyendrapal6405 Жыл бұрын
🤗story ---> done
@gauravbanerjee28985 ай бұрын
Thanks a lot bhaiya ❤❤
@aizad786iqbal5 ай бұрын
class Solution { public int minimumPushes(String word) { int n = word.length(); int ans = 0; int p=1; int x = 8; while( n >= 0){ if(n
@anuppatankar4294 Жыл бұрын
Great video 👌
@imPriyansh775 ай бұрын
Bhaiya, did today's POTD (3016) on my own...I used Max-Heap Priority Queue. Got time complexity O(n * logn) and space complexity O(26) ~ O(1)
@codestorywithMIK5 ай бұрын
❤️❤️❤️
@amanpandey8031 Жыл бұрын
it was really helpful for me thanx a lot
@thefinalfit Жыл бұрын
Please Qn-2 also
@priyanshumishra_IITDh Жыл бұрын
Hello sir can you please upload solution for today's gfg potd vertex cover
@tutuimam3381 Жыл бұрын
Thanks 👍
@AmarjeetKumar-to9ub5 ай бұрын
🔥
@peterfromengland86635 ай бұрын
Did it on my own
@jambajuice07 Жыл бұрын
please make video on c of biweekly contest
@adityaraj-zm7zk5 ай бұрын
@codestorywithMIK sir yaha pe bata dena ye kaia hua samajh nhi aaya for(char &ch: word) mp[ch - 'a']++;
@DManikandan-cw2cw Жыл бұрын
@codestorywithMIK Buddy plz upload for Biweekly Contest 122 held yesterday
@arjitgautam365 Жыл бұрын
yes, if possible pls upload the solutions
@codestorywithMIK Жыл бұрын
Will try to upload soon Unfortunately couldn’t get much time ❤️🙏
@alokbhowmik3547 Жыл бұрын
Aj ka GFG ka potd ka video bana dijia
@salmaniproductions11045 ай бұрын
Thank you bhaiiya
@dayashankarlakhotia4943 Жыл бұрын
please make video on qn.no2&no4.graph problem.
@benoitblanc-zl8rc Жыл бұрын
Thanks man ❤
@souravjoshi2293 Жыл бұрын
Mik , please post Problem 2 solution.
@amansaurabh4552 Жыл бұрын
Bhaiya plz make video on today's GFG POTD
@FanIQQuiz Жыл бұрын
Waiting for Qn-2 of weekly contest.
@harshitsoni8456 Жыл бұрын
Bhai please add 2 and 4th also
@HI-wl9el Жыл бұрын
Doubt ::: Consider i am in a OA. Problem dp ka hai ... If my memo dp is accepted. So should i go for tabulation ???? Like that will increase my chance of selection ??? (bcoz of improved sp complexity) Or will it decrease (due to more no of submission)
@codestorywithMIK Жыл бұрын
No. If all test caes are accepted, run to the next qn. During face to face interview, you can discuss bottom up
@HI-wl9el Жыл бұрын
@@codestorywithMIK thanks, sir. But I was thinking of the scenario when all the rest questions are completed !!!
@codestorywithMIK Жыл бұрын
@HI-wl9el yes definitely in that case, you can try optimal approach
@HI-wl9el Жыл бұрын
@@codestorywithMIK thank you, sir. By the way, I love your style of explaining!
please upload the solution of latest biweekly contest...........
@rushabhlegion2560 Жыл бұрын
Yr sunday ko late kyu nhi rakhte ye contest.
@bhuppidhamii Жыл бұрын
I think timing is good 😊
@rushabhlegion2560 Жыл бұрын
@@bhuppidhamii Nhi yr bro. Roz morning me office jana padta hai. Sirf sunday ek din hota hai sone ke liye.
@bhuppidhamii Жыл бұрын
@@rushabhlegion2560 oho
@varunaggarwal7126 Жыл бұрын
why are we using hashmap? I did it without it class Solution { public: int minimumPushes(string word) { int ans=0; int it=0; int key=1; for(auto &ch: word){ if(it>7){ key++; it=0; } ans+=key; it++; } return ans; } };
@adityaraj-zm7zk5 ай бұрын
#codestorywithMIK sir iska slides daal do samhne ke liye please sir
@tutuimam33815 ай бұрын
❤❤
@dayashankarlakhotia4943 Жыл бұрын
public int minimumPushes (String word){ int[]freq=new int[26]; for(char c:word.toCharArray()){ freq[c-'a']--; } Arrays.sort(freq); int cnt=0; for(int i=0;i
@Ankitkumar-fz3kc Жыл бұрын
class Solution { public: int minimumPushes(string word) { int ans = 0; vector vec(26,0); for(int i = 0 ; i < word.length();i++){ vec[word[i]-'a']++; } sort(vec.rbegin(),vec.rend()); int cnt = 0; for(int i = 0 ; i< 26;i++){ if(cnt < 8 && vec[i]!=0) ans += vec[i]; else if(cnt>=8 && vec[i]!=0){ ans += ((cnt/8)+1)*vec[i]; } else{ break; } cnt++; } return ans; } }; sir this is my solution is it optimised or i can do better
@codestorywithMIK11 ай бұрын
This looks good Ankit. Great job.
@faraz9641 Жыл бұрын
Merse ek b ni bna 🥲🥲
@souravjoshi2293 Жыл бұрын
Same bhai 😥
@rushabhlegion2560 Жыл бұрын
1st aur 3rd easy tha bro. Lekin 2nd and 4th is difficult