Find First and Last Position of Element in Sorted Array | Leetcode - 34

Sdílet
Vložit
  • čas přidán 7. 09. 2024

Komentáře • 19

  • @AlgorithmsMadeEasy
    @AlgorithmsMadeEasy  Před 3 lety +1

    We hope you all are enjoying our videos!!! Don't forget to leave a comment!!! Please like the video to support us!!!
    Questions you might like:
    ✅✅✅[ Tree Data Structure ] : czcams.com/play/PLJtzaiEpVo2zx-rCqLMmcFEpZw1UpGWls.html
    ✅✅✅[ Graphs Data Structure ] : czcams.com/play/PLJtzaiEpVo2xg89cZzZCHqX03a1Vb6w7C.html
    ✅✅✅[ January Leetcoding Challenge ] : czcams.com/play/PLJtzaiEpVo2wCalBcRcNjXQ0C6ku3dRkn.html
    ✅✅✅[ December Leetcoding Challenge ] : czcams.com/play/PLJtzaiEpVo2xo8OdPZxrpybGR8FmzZpCA.html
    ✅✅✅[ November Leetcoding Challenge ] : czcams.com/play/PLJtzaiEpVo2yMYz5RPH6pfB0wNnwWsK7e.html
    ✅✅✅[ August Leetcoding Challenge ] : czcams.com/play/PLJtzaiEpVo2xu4h0gYQzvOMboclK_pZMe.html
    ✅✅✅July Leetcoding challenges: czcams.com/play/PLJtzaiEpVo2wrUwkvexbC-vbUqVIy7qC-.html
    ✅✅✅June Leetcoding challenges: czcams.com/play/PLJtzaiEpVo2xIfpptnCvUtKrUcod2zAKG.html
    ✅✅✅May Leetcoding challenges: czcams.com/play/PLJtzaiEpVo2wRmUCq96zsUwOVD6p66K9e.html
    ✅✅✅Cracking the Coding Interview - Unique String: czcams.com/play/PLJtzaiEpVo2xXf4LZb3y_BopOnLC1L4mE.html
    Struggling in a question??
    Leave in a comment and we will make a video!!!🙂🙂🙂

  • @NirmalSilwal
    @NirmalSilwal Před 3 lety +2

    having those 179 videos in playlist according to difficulty level wise would be much helpful

  • @Pratik_yadaw
    @Pratik_yadaw Před rokem +1

    i understand this after 2 hours.. im really slow btw thanks for making such videos

  • @erenyeager4452
    @erenyeager4452 Před 2 lety +1

    THanks for the solution

  • @muthuvalli333
    @muthuvalli333 Před 3 lety +3

    Superb...👌🏻👌🏻👌🏻

  • @ritikshandilya7075
    @ritikshandilya7075 Před 7 měsíci

    Beautiful Explanation

  • @appuseries5258
    @appuseries5258 Před rokem +1

    nice , Thanks a lot

  • @driveinspire2024
    @driveinspire2024 Před 2 lety

    Nice 👍

  • @AmritAgarwal07
    @AmritAgarwal07 Před 3 lety +1

    nice

  • @vikashverma3628
    @vikashverma3628 Před 11 měsíci

    this code is not run for [1] and [2,2]

  • @Pratik_yadaw
    @Pratik_yadaw Před rokem

    why we taking end = mid why not end = mid -1?

  • @SuriyaT3001
    @SuriyaT3001 Před rokem

    why you have use start+(end-start)/2 instead of (start+end)/2; pls tell me ..

    • @AlgorithmsMadeEasy
      @AlgorithmsMadeEasy  Před rokem +1

      It is a best practice so that for large number, the int value does not overflow and you always get a correct result for mid.

  • @dishantpagdar8209
    @dishantpagdar8209 Před rokem

    What if the nums.length == 0 ? you haven't covered that case..

  • @AmritAgarwal07
    @AmritAgarwal07 Před 3 lety

    933. Number of Recent Calls