LeetCode Problem: 34. Find First and Last Position of Element in Sorted Array | Java Solution

Sdílet
Vložit
  • čas přidán 4. 10. 2022
  • Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value.
    leetcode.com/problems/find-fi...
    🎥 Complete playlist of LeetCode Problems
    • LeetCode Problem: 709....
    ---------------------------------------------------------------------------------------------
    Checkout other videos
    Java Projects Playlist: • 1/12 - Bank Management...
    JavaScript Projects Playlist: • JavaScript Projects
    React Projects Playlist: • React Projects
    MERN Stack Projects Playlist: • MERN Stack Projects
    Spring Boot Full Stack Projects: • Full Stack Projects - ...
    Next.js Projects Playlist: • Next.js Projects
    🌎 Find Me Here:
    Instagram: codeforinterview ( / codeforinterview )
    Telegram: codeforinterview (t.me/codeforinterview)
    #leetcode #leetcodesolution #leetcodequestionandanswers

Komentáře • 16

  • @codeforinterview
    @codeforinterview  Před rokem

    If you have a better solution, do comment. Check the other questions: czcams.com/video/cORK0YESg9A/video.html

  • @zakky44A
    @zakky44A Před 2 měsíci

    Why have you used high = nums.length in the second loop? 🤔

  • @sanatmishra6069
    @sanatmishra6069 Před 5 měsíci

    explanation👌👌

    • @codeforinterview
      @codeforinterview  Před 4 měsíci

      thanks bro! ❤ checkout the whole series czcams.com/video/cORK0YESg9A/video.html

  • @technologyking8105
    @technologyking8105 Před rokem

    Keep it sir

  • @sachinpandey7751
    @sachinpandey7751 Před rokem +1

    please make a video on whatsapp deployment

  • @prismstealthx100
    @prismstealthx100 Před rokem

    Can you help me on creating react app with mui? I am getting errors..

  • @yuvrajyadav4592
    @yuvrajyadav4592 Před rokem

    cannot Find symbol in conn c= new conn() Main error aa rhi hai , please help

  • @pkm1747
    @pkm1747 Před rokem

    My error is-
    Maximum update depth exceeded. This can happen when a component calls setState inside useEffect,
    but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render
    this code is from whatsapp clone 8/8
    useEffect(()=>{ socket.current.emit('addUsers',account);
    socket.current.on('getUsers',users=>{
    setActiveUser(users)
    })
    },[account])
    plz solve

  • @anmolmishra7526
    @anmolmishra7526 Před rokem

    Sir pls make react native videos ,it's a request sir