It's funny. I just realized I wasn't subscribed even though I've been watching your videos for a while now. Subscribed now and liked. I loved this intuition. By the way, "Maqsad". I had to browse what it means. Nigerian guy here, you may force me to learn Urdu
Why is my DP approach giving TLE? class Solution { unordered_map memo; bool check(vector& nums, string& index) { int p = index[0] - '0'; int q = index[1] - '0'; int r = index[2] - '0'; int s = index[3] - '0'; if (q - p
Never do this mistake in your OAs - ruclips.net/user/shortsRCJwPU619g4?feature=share
Q4 - ruclips.net/video/QPKyT2YGnHY/видео.html
It's funny. I just realized I wasn't subscribed even though I've been watching your videos for a while now. Subscribed now and liked. I loved this intuition.
By the way, "Maqsad". I had to browse what it means. Nigerian guy here, you may force me to learn Urdu
why dp is not working here
Great explanation. This was indeed a hard question.
Amazing Explanation. You made it pretty easy to understand. Thanks.
The key could also be a Pair of Integers.
Very well explained and question was very intuitive
big fan of your work 🥰🥰🥰🥰🥰
Thank you so much broooo 😀
this ques comes in google just 2 months back in OA.
Why is my DP approach giving TLE?
class Solution {
unordered_map memo;
bool check(vector& nums, string& index) {
int p = index[0] - '0';
int q = index[1] - '0';
int r = index[2] - '0';
int s = index[3] - '0';
if (q - p
because the solution is taking much time😌
@ARYANMITTAL why dp didn't work here ?