Тёмный
Mayur Programming Club
Mayur Programming Club
Mayur Programming Club
Подписаться
Комментарии
@ayannema8207
@ayannema8207 2 часа назад
Mayur bhai...which headphones do you use??...btw great videos...keep the good work going 🔥🔥
@AlexaVawzen
@AlexaVawzen День назад
Thank you 🙏
@SayanMondal-t5n
@SayanMondal-t5n 20 дней назад
Thanks
@mayurprogrammingclub1001
@mayurprogrammingclub1001 22 дня назад
Please note that the X-Y coordinate system was used during the explanation. This may differ slightly when applied to a grid.
@mayurprogrammingclub1001
@mayurprogrammingclub1001 28 дней назад
Time Complexity: O(31) / constant
@mayurprogrammingclub1001
@mayurprogrammingclub1001 29 дней назад
Complexity Analysis: Time Complexity: O(n^3), where n is the length of the string. This complexity arises due to the nested loops that check all possible partitions and transitions within the string. Space Complexity: O(n^2), as we are using a 2D DP array to store the minimum number of operations required for each substring.
@mayurprogrammingclub1001
@mayurprogrammingclub1001 Месяц назад
Apologies for the confusion earlier! The time complexity of this approach is O(n), especially in the case of prime numbers where n iterations are required. Thanks for your understanding!
@swayampattanaik1522
@swayampattanaik1522 Месяц назад
great video, just the background music is kind of annoying when watching in 1.75x or 2x. Remove it if possible
@mayurprogrammingclub1001
@mayurprogrammingclub1001 Месяц назад
Thank you for your feedback! The music is just for the problem statement reading part, but we'll consider adjusting it or removing it to better suit faster playback speeds.
@SaurabhSingh-in7lr
@SaurabhSingh-in7lr Месяц назад
great solution keep contuining this series
@mayurprogrammingclub1001
@mayurprogrammingclub1001 Месяц назад
Time complexity: O(log base 10 (n)), n is the number of chunks(batches) Space Complexity: O(1), Ignoring the space used for storing result. And couple of more stringbuilders and string arrays
@mayurprogrammingclub1001
@mayurprogrammingclub1001 Месяц назад
switch to 1.5x for better viewing experience
@akhilmittal9876
@akhilmittal9876 Месяц назад
nice solution bro.. keep going ...
@mayurprogrammingclub1001
@mayurprogrammingclub1001 Месяц назад
Thank you for your appreciation.
@mayurprogrammingclub1001
@mayurprogrammingclub1001 Месяц назад
Please note, when using stable_sort in C++, be aware that while the algorithm typically operates at O(n * log n) under optimal conditions with sufficient memory, it can degrade to O(n * log^2(n)) if memory is limited.
@liukang1240
@liukang1240 Месяц назад
What if we have people with the same height?
@mayurprogrammingclub1001
@mayurprogrammingclub1001 Месяц назад
As per the constraints in problem: "All the values of heights are distinct." So the problem does not remains the same if these constraints change
@mayurprogrammingclub1001
@mayurprogrammingclub1001 Месяц назад
We apologize for the oversight. The time complexity is O(nlogn) instead of O(n) due to the use of inbuilt sorting. Regards, Mayur Programming Club (MPC) 😊
@sabarishkrishnamoorthi7985
@sabarishkrishnamoorthi7985 2 месяца назад
i am from leetcode solution page comment section, keep doing contents like this bro, thank you so much for your solution
@mayurprogrammingclub1001
@mayurprogrammingclub1001 2 месяца назад
Hi Viewers, Apologies for the confusion. In the provided example, please consider 1 as a local minima. We hope this clarification does not affect your understanding of the logic and approach. Best regards, MPC (Mayur Programming Club) 🖥🔍
@missionimpossible5657
@missionimpossible5657 2 месяца назад
Thanks bro, you are a life saver. Keep the videos coming!!!!!!!!!
@ntgrn-pr5yx
@ntgrn-pr5yx 4 месяца назад
u can give better explain , explain without the code
@Prog-bo7vh
@Prog-bo7vh 4 месяца назад
Wow. It was a great explanation. For the first 5 minutes I could not really follow you. Maybe think if you can become little bit clearer on the mask part and why you using it. Overall totally worth of 11 minutes. Thank you!
@Kaurs_Life
@Kaurs_Life 4 месяца назад
Thanks a ton for the analogy!!
@mayurprogrammingclub1001
@mayurprogrammingclub1001 4 месяца назад
Glad it was helpful!
@OvhayKumar
@OvhayKumar 5 месяцев назад
sexy brooo
@dominicstocker5144
@dominicstocker5144 5 месяцев назад
Thank you for your explanation. As a tip, your microphone seems to be clipping a lot. Maybe adjusting your microphone level and/or hoe close you are to it can help. Maybe it is caused by the microphone itself though.
@mayurprogrammingclub1001
@mayurprogrammingclub1001 5 месяцев назад
Thank you. For suggestion we would try another mic next video onwards
@mayurprogrammingclub1001
@mayurprogrammingclub1001 5 месяцев назад
There were some issues with the audio quality today. We regret the inconvenience caused. They will be fixed from the next video onwards.
@OgabekAvazov-b1x
@OgabekAvazov-b1x 6 месяцев назад
Keep up the great work
@hetjayeshbhaipatel1075
@hetjayeshbhaipatel1075 6 месяцев назад
good
@mayurprogrammingclub1001
@mayurprogrammingclub1001 6 месяцев назад
Around 4:05 Please consider division of overall product by each number(if divsion operator would have been allowed).
@samratpatel8060
@samratpatel8060 6 месяцев назад
seen videos of 2-3 person but couldn't got the logic , you explained it so well. here's my like
@imdeveshshukla
@imdeveshshukla 6 месяцев назад
Thanks Bhai ab jaa kar samaj aaya
@KapilKumar-xz9ip
@KapilKumar-xz9ip 6 месяцев назад
thanks sir your videos are very helpful 🥰
@raveenakumari6724
@raveenakumari6724 6 месяцев назад
could you please explain how you deleted the prefix sum values in hashmap?
@mayurprogrammingclub1001
@mayurprogrammingclub1001 6 месяцев назад
Watch around 14:41
@mayurprogrammingclub1001
@mayurprogrammingclub1001 6 месяцев назад
Please note a correction in time complexity analysis. Consider it O(len1 + len2), where len1 and len2 are lengths of two input arrays.
@ISABELLEDUPONTTT
@ISABELLEDUPONTTT 6 месяцев назад
can u do python version pls
@mayurprogrammingclub1001
@mayurprogrammingclub1001 6 месяцев назад
Please use ChatGPT to convert our code into your favourite programming language.
@rajivratna4813
@rajivratna4813 6 месяцев назад
try in java also
@chase.2595
@chase.2595 6 месяцев назад
how did u come up with this? like the thought process behind it
@mayurprogrammingclub1001
@mayurprogrammingclub1001 6 месяцев назад
I used prior knowledge of XOR operations. And being able to apply some knowledge comes with practice. I have explained the thought process in video also.
@hussein-alemam
@hussein-alemam 6 месяцев назад
Thanks 🤍
@dharaneeshwarpurushothaman6396
@dharaneeshwarpurushothaman6396 6 месяцев назад
Thanks man 👍
@mayurprogrammingclub1001
@mayurprogrammingclub1001 7 месяцев назад
There were some issues with audio quality today due to a technical glitch. They will be resolved in upcoming videos. We apologized for the inconvenience caused.
@cs_iitian
@cs_iitian 7 месяцев назад
Good Work, keep going. One Suggestion: try to upload in some faster speed.
@mayurprogrammingclub1001
@mayurprogrammingclub1001 7 месяцев назад
Sure, We will try to upload as soon as possible.
@shirishakommu8133
@shirishakommu8133 7 месяцев назад
Good work
@mayurprogrammingclub1001
@mayurprogrammingclub1001 7 месяцев назад
Note : Consider 31st bit as the MSB(Most Significant Bit) in the illustration
@MaheshPatil-of1zy
@MaheshPatil-of1zy 8 месяцев назад
can you please tell me how to build logic for such code?
@mayurprogrammingclub1001
@mayurprogrammingclub1001 8 месяцев назад
Sir, logic building improves with practice. It is the only way. Apart from that practicing smartly is the key. Let's say this was the problem that you were not able to solve own your own. Then what you can do is see what concepts are being used in solution and try to learn and practice them so that next time a similar pattern problems occurs your chances of solving it are more than what currently are.
@pushkarkhare9689
@pushkarkhare9689 8 месяцев назад
Just a feedback: The explaination is good! what I wanted you to improve that if you are saying something and then taking time to write the same thing makes the video slow and boring which will make people disinterested. So maybe try avoiding or finding an alternate approach to it. Otherwise thanx for explaining:)
@JashanpreetSingh-j7m
@JashanpreetSingh-j7m 8 месяцев назад
Your approach is very satisfying 😄explaining every small chunk of code and concept associated with it is really helpful for a beginner like me Thanks!!
@nv2199
@nv2199 8 месяцев назад
Keep up the good work.
@mayurprogrammingclub1001
@mayurprogrammingclub1001 8 месяцев назад
Time complexity: O(n * log n), n is the number of unique player participating in matches. Space complexity: O(n)
@marilahmadsurat3078
@marilahmadsurat3078 8 месяцев назад
Masya Alloh 👍🏻
@asiandude918
@asiandude918 8 месяцев назад
14:55 If I'm understanding this correctly, the condition in line 13 is checking if indx is an index outside of the current available indices in the vector lis. Meaning len is the same as lis.end() which will always be increasing the subsequence? EDIT: I replaced line 13 with this "if (lower_bound(lis.begin(), lis.end(), num) == lis.end())" and it seemed to work the same, so I believe my reasoning is correct. Thank you for the solution.
@aryanmalik919
@aryanmalik919 8 месяцев назад
A great solution and a great explanation absolutely loved it