hey, monotonic pattern kafi tricky hota hai, description me maine videos add krdi hai, woh bhi dekh lena... not same but help ho jaege, aur ache se smjh aa jaega... Like target is 130, please do like if you have understood the explanation 😄😄
sir will help to solve this question Given a string `s` and an integer `k`, find the number of substrings of `s` where the frequency of each character in the substring is equal to `k`. Constraints 1
Bhaiya ek request hai..please jab aap video upload krte ho toh.. title mai approach mt likha kro(stack)..mai problem pehle khudse try krta hu without any hint but YT notification se mujhe video title dikh jata hai aur hint mila jata hai😢
@@shashwat_tiwari_st Bhaiya any tips on how to recognise this type of questions in OA.. Kyuki question dekhe ke pata chala tha Stack ka question hai..But solve nahi hua..I mean can we solve these questions only if we have solved them before ?
hey, monotonic pattern kafi tricky hota hai, description me maine videos add krdi hai, woh bhi dekh lena... not same but help ho jaege, aur ache se smjh aa jaega... Like target is 130, please do like if you have understood the explanation 😄😄
Can be solved using B. S
you are new DSA boss in market
thankyou bhaiya 😇😇 waise apne kal ka aur perso ka problem bhaut pehle padhaya tha maine khud se kr liya tha😛
solved this problem, only 2 test cases are getting failed.
Sir DP series kab start karenge app please reply ❤
Great explanation.
Hi
Can u please make a video for leetcode 1590
Thank you so much
nicely explained
sir will help to solve this question
Given a string `s` and an integer `k`, find the number of substrings of `s` where the frequency of each character in the substring is equal to `k`.
Constraints
1
can you also show a way where this can be solve even better using binary search?
please...
We can't apply BS here as sorting the array changes the indices of the original array
Bhaiya ek request hai..please jab aap video upload krte ho toh.. title mai approach mt likha kro(stack)..mai problem pehle khudse try krta hu without any hint but YT notification se mujhe video title dikh jata hai aur hint mila jata hai😢
Thanks bhaiya got it..but 3 bar dekhna para
Hard pattern hai, no doubt
@@shashwat_tiwari_st Bhaiya any tips on how to recognise this type of questions in OA.. Kyuki question dekhe ke pata chala tha Stack ka question hai..But solve nahi hua..I mean can we solve these questions only if we have solved them before ?
Nice explanation 😊
Glad you liked it
Solve bruteforce but not understand how i solve optimize problem
how someone think this approch is it always true
Brute Froce : 🫡
class Solution {
public int maxWidthRamp(int[] nums) {
int maxDis = 0;
for(int i = 0;i0;j--){
if(nums[j]>= nums[i]){
int currDis = j-i;
maxDis = Math.max(maxDis, currDis);
}
}
}
return maxDis;
}
}
Maxdis ke neeche break laga skte ho 🎉
@@shashwat_tiwari_st 😅❤