Last Stone Weight (LeetCode 1046) | Full Solution with 3 different methods | Priority Queue

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ค. 2024
  • Join this channel to get access to perks: / @nikoo28
    Actual problem on LeetCode: leetcode.com/problems/last-st...
    Chapters:
    00:00 - Intro
    00:41 - Problem Statement
    03:35 - Brute Force Method
    05:10 - Trying to sort
    06:37 - Efficient Solution using Priority Queue
    09:03 - Dry-run of Code
    11:06 - Final Thoughts
    📚 Links to topics I talk about in the video:
    Brute Force Method: • Brute Force algorithms...
    Merge Sort: • Merge Sort with Visual...
    What is Big O?: • Big O Notation Simplif...
    Other Easy Problems: • Easy Problems
    📘 A text based explanation is available at: studyalgorithms.com
    Code on Github: github.com/nikoo28/java-solut...
    Test-cases on Github: github.com/nikoo28/java-solut...
    📖 Reference Books:
    Starting Learn to Code: amzn.to/3sJm8Wl
    Favorite book to understand algorithms: amzn.to/4848xJH
    Favorite book for data structures: amzn.to/3P96YBv
    Get started for interview preparation: amzn.to/44Nn5du
    🔗 To see more videos like this, you can show your support on: www.buymeacoffee.com/studyalg...
    🎥 My Recording Gear:
    Recording Light: amzn.to/3PdsViT
    Microphone: amzn.to/3Exv83x
    Recording Camera: amzn.to/3PwyN8e
    Tablet to sketch and draw: amzn.to/3ZdKVy7
    Sketching Tool: amzn.to/45XJEgY
    Laptop to edit videos: amzn.to/460ofDu
    💻 Get Social 💻
    Follow on Facebook at: / studyalgos
    Subscribe to RSS feeds: studyalgorithms.com/feed/
    Join fan mail: eepurl.com/g9Dadv
    #leetcode #programming #interview

ความคิดเห็น • 7

  • @ITRSudharsanR
    @ITRSudharsanR 15 วันที่ผ่านมา

    Good work sir 👏

  • @urvashichaurasia6284
    @urvashichaurasia6284 15 วันที่ผ่านมา

    Nice explanation sir

  • @vinaytiwari6651
    @vinaytiwari6651 15 วันที่ผ่านมา

    Sir u ar doing work plz keep doing it... I will promote your channel... U got great content truly helpful ❤❤❤❤

    • @nikoo28
      @nikoo28  14 วันที่ผ่านมา

      So nice of you...please help as much as you can

    • @AmandeepSingh-uz1ug
      @AmandeepSingh-uz1ug 12 วันที่ผ่านมา

      @@nikoo28 Keep going sir

  • @Homelander_30
    @Homelander_30 14 วันที่ผ่านมา

    Bhai start dsa course atleast for members, ill buy a membership for sure.

  • @abhiroopmokshagnabheemineni
    @abhiroopmokshagnabheemineni 13 วันที่ผ่านมา

    So, during insertion into the priority queue, it takes nlogn and also during polling it will also take nlogn. Is my understanding correct?