L -121 First negative number in every window of size K | Java DSA Placement | FAANG | GFG

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 12

  • @aakashdeep_2310
    @aakashdeep_2310 20 дней назад

    Nicely Explained
    Thank you bhaiya

  • @saniakumari117
    @saniakumari117 6 дней назад

    Time Complexity of Brute should be N*K then why (N*k)*k (extra *k)

  • @shakshampandey21
    @shakshampandey21 21 день назад

    Where do i get this JAVAPLUSDSA sheet

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  21 день назад +1

      @@shakshampandey21 ruclips.net/video/lZ5olZxEt_s/видео.htmlsi=J-2VVcmwzFAaYvBK

  • @marshmallow_av
    @marshmallow_av 2 месяца назад

    how space complexity is n-k ,could you please explain in detail ?

    • @marshmallow_av
      @marshmallow_av 2 месяца назад

      the above question is for brut force approach.

  • @damnanuj
    @damnanuj 9 месяцев назад

    Result arr size [n-k+1] hi...ye kaise decide hua sir?

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  9 месяцев назад +6

      Total elements in the array are 8 ( index 0 to 7), let's call it N.
      Size of window (k) is 3
      So possible windows are (indexes)
      1) 0,1,2
      2) 1,2,3
      3) 2,3,4
      4) 3,4,5
      5) 4,5,6
      6) 5,6,7
      So total 6 windows!
      Now N=8, K=3
      How can we get 6 from N and K
      N-K+1.

  • @mr.nishantawasthi4402
    @mr.nishantawasthi4402 9 месяцев назад

    Sir placement aap k channel se hoga....

  • @dhananjoyghosh3500
    @dhananjoyghosh3500 2 месяца назад

    This is not the optimal approach