962. Maximum Width Ramp | stacks | Leetcode Daily Challenge | DSA | Java | shashcode

Поділитися
Вставка
  • Опубліковано 11 жов 2024

КОМЕНТАРІ • 24

  • @shashwat_tiwari_st
    @shashwat_tiwari_st  2 дні тому +3

    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 😄😄

  • @sourabhgarg2890
    @sourabhgarg2890 2 дні тому +2

    you are new DSA boss in market

  • @PiyushSharma-we8yd
    @PiyushSharma-we8yd 2 дні тому

    thankyou bhaiya 😇😇 waise apne kal ka aur perso ka problem bhaut pehle padhaya tha maine khud se kr liya tha😛

  • @aakashdeep_2310
    @aakashdeep_2310 2 дні тому

    solved this problem, only 2 test cases are getting failed.

  • @mr.nishantawasthi4402
    @mr.nishantawasthi4402 2 дні тому

    Sir DP series kab start karenge app please reply ❤

  • @valobhediya
    @valobhediya 2 дні тому

    Great explanation.

  • @khushalgandhi5157
    @khushalgandhi5157 2 дні тому +1

    Hi
    Can u please make a video for leetcode 1590

  • @praveenkumarg8413
    @praveenkumarg8413 2 дні тому

    Thank you so much

  • @ayeshapatel3778
    @ayeshapatel3778 2 дні тому

    nicely explained

  • @biplab9969
    @biplab9969 2 дні тому

    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

  • @vipulbhavsar4179
    @vipulbhavsar4179 2 дні тому +1

    can you also show a way where this can be solve even better using binary search?
    please...

    • @arunsai3426
      @arunsai3426 2 дні тому

      We can't apply BS here as sorting the array changes the indices of the original array

  • @сойка-и8й
    @сойка-и8й День тому

    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😢

  • @DarkDragon-bz6qp
    @DarkDragon-bz6qp 2 дні тому +1

    Thanks bhaiya got it..but 3 bar dekhna para

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  День тому

      Hard pattern hai, no doubt

    • @DarkDragon-bz6qp
      @DarkDragon-bz6qp День тому

      @@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 ?

  • @SUMITRAJ-nb5js
    @SUMITRAJ-nb5js 2 дні тому

    Nice explanation 😊

  • @MohammedHasmi577
    @MohammedHasmi577 2 дні тому

    Solve bruteforce but not understand how i solve optimize problem

  • @niteshkhanna690
    @niteshkhanna690 2 дні тому +1

    how someone think this approch is it always true

  • @is_Debu
    @is_Debu 2 дні тому +1

    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;
    }
    }