Priority Queue Explained | Min and Max Heap | Custom Comparator

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025
  • Hey guys, In this video, we're going to learn about PriorityQueues in Java with Custom Comparator.
    Also, we will go through its implementation in Java with MIn Heap and Max Heap data Structure.
    🎟 Join this channel to get access to perks:
    / @dailycodebuffer
    RECOMMENDED COURSES
    🎬 Spring Boot + React Full Stack Web Application with Tailwind CSS - • Spring Boot + React Fu...
    🎬 Spring Security Full Course | From Registration to Login - • Spring Security Tutori...
    🎬 Microservices using SpringBoot | Full Example - • Microservices using Sp...
    🎬 Event-Driven Microservices with CQRS Design Pattern - • Implement CQRS Design ...
    🎬 Implement SAGA Design Pattern using Spring boot and Axon Framework - • Implement SAGA Design ...
    🎬 Spring Data JPA Tutorial | Full In-depth Course - • Spring Data JPA Tutori...
    🎬 Deploy Springboot Microservices to Kubernetes Cluster - • Deploy Springboot Micr...
    🎬 Automate Microservices deployment with Github Actions - • GitHub Actions Tutoria...
    🎬 Go / Golang Full Course for Beginners - • Golang Tutorial for Be...
    🎬 Node JS Full Course for Beginners: Learn in 2 Hours - • Node JS Full Course fo...
    🎬 Express.js Tutorial - Beginner | 2021 - • Express.js Tutorial - ...
    🎬 Redis CLI Tutorial | Complete Course - • Redis CLI Tutorial | C...
    BE MY FRIEND:
    👨‍💻. Website: www.dailycodebu...
    👨‍🏫 Facebook: / dailycodebuffer
    🐦 Twitter: / dailycodebuffer
    📸 Instagram: / dailycodebuffer
    🎮 GitHub: github.com/dai...
    MY FAVOURITE GEAR:
    👨‍💻 My Macbook Air M1: amzn.to/3eFXlID
    💻 ASUS ROG Zephyrus G14, 14": amzn.to/32xsXhf
    💻 ASUS ROG Zephyrus G14, 14" (US): amzn.to/3xa6X6m
    🎤 My Main Mic: amzn.to/3qDl0z0
    🎤 My Main Mic (US): amzn.to/3awzUj7
    🎙 My Secondary Mic: amzn.to/3sOZCJW
    🖥 My LG Monitor: amzn.to/3zhLY3e
    🖱 My Mouse: amzn.to/3eDpRKT
    ⌨️ My Keyboard: amzn.to/32xthMZ
    RECOMMENDED BOOKS:
    📙 Mastering Spring Boot 2.0 (Kindle): amzn.to/3HsOiHu
    📙 Mastering Spring Boot 2.0 (US): amzn.to/3tHNUy5
    📙 Building Microservices(Kindle): amzn.to/3gsA1jL
    📙 Building Microservices(US): amzn.to/3dDnfNn
    📙 Spring Boot in Action: amzn.to/32Nf3qW
    📙 Spring Boot in Action (US): amzn.to/32DkeX9
    📙 Spring Microservices in Action: amzn.to/3mQ4sCH
    📙 Spring Microservices in Action(US): amzn.to/32G3Hl7
    🎻 MUSIC:
    🎵 Hear the Noise (Sting): www.youtube.co...
    “Sound effects obtained from www.zapsplat.com“
    #priorityqueue #dsa #java #DailyCodeBuffer

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

  • @CS23B032MUTYALAROHITHVENKAT
    @CS23B032MUTYALAROHITHVENKAT 2 месяца назад +1

    00:01 Priority Queue in Java explained
    01:57 Java's priority queue uses a min heap
    04:00 Understanding complete binary tree and properties of min heap
    05:55 Explanation of Min Heap operation
    07:59 Min Heap representation using array
    10:09 Explaining insertion and parent-child relationships in a min-heap
    12:10 Explanation of Min Heap
    14:15 Understanding Min and Max Heap with Custom Comparator
    16:15 Creating a custom comparator for Priority Queue
    18:18 Creating a priority queue with customer objects
    20:04 Implementing a custom comparator to sort data based on a specific attribute.
    21:55 Explanation of priority queue with min and max heap.
    Crafted by Merlin AI.

  • @codeash8373
    @codeash8373 10 месяцев назад +1

    Best explanation on internet about priority queue

  • @purnasahu8766
    @purnasahu8766 2 года назад +9

    Please make video on DFS, BFS, graph, tree traversing.
    u really explaining well, waiting for your rest all DSA topics.

  • @unknown-mf7dd
    @unknown-mf7dd Месяц назад +1

    correction at 01:16 abstract queue is a partial implementation of queue

  • @atulkumar-bb7vi
    @atulkumar-bb7vi Год назад +1

    Thanks for wonderful explanation. Your explanations are always very detailed. Nice!

  • @ZenricCoder
    @ZenricCoder 3 месяца назад

    Super Easy explanation Examples .. Thanks for putting this vid .

  • @shakhzodrasulov
    @shakhzodrasulov Год назад

    Thanks a lot! Your explanation is cool and it helped me understand how Priority Queue works internally!

  • @aagaasavaanii9075
    @aagaasavaanii9075 Месяц назад

    Nice explanation. Need example for max heap as well.

  • @arghyamitra3281
    @arghyamitra3281 2 года назад +1

    Super work .. please make video tree and graph ds too

  • @ayavi22
    @ayavi22 2 года назад +2

    hey Shabbir thanks for this video. enjoyed it thoroughly. Can you make videos on multithreading i like your teaching style.

  • @tricktreat7941
    @tricktreat7941 2 года назад

    You contents are really good. Thank you!

  • @shivanshugautam1381
    @shivanshugautam1381 2 года назад +1

    Please make a detailed video on OOPS in java

  • @akshayktk1890
    @akshayktk1890 2 года назад +2

    Bro if possible, pls make a tutorial on Vertx framework. Thanks in advance 🙂

  • @dasbabu5675
    @dasbabu5675 2 года назад +1

    Thanks for Videos

  • @MutantBikers
    @MutantBikers 2 года назад

    Bhai there are a few videos on lit html, if you can create a lit html beginning to advance crash course in single video & after it spring with lit-html by a project, Bro it is my humble request, because there is not a single video on spring and lit. If you accept my request then please let us know a tentative date for the course starting. Please reply 🙂🙂

  • @hamednikbakht9708
    @hamednikbakht9708 2 года назад +1

    hi very good brother , pleas add video master spring batch for call foreign rest API and get JSON data and read , mapping to request process and save in database by API Thank you

  • @حامدنیکبخت-ن5ع
    @حامدنیکبخت-ن5ع 2 года назад

    please create video from spring batch microservice

  • @shob6094
    @shob6094 2 года назад +1

    Thank u shabbir

  • @vijik2988
    @vijik2988 2 года назад

    Please make the videos on all DSA topics it will be great

  • @beesetti.d.ssubhash5075
    @beesetti.d.ssubhash5075 2 года назад

    Hi shabbir, hope you doing great. Btw where do learn all topics from??

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад

      Yes, thanks for asking
      From different resources over some blogs and some videos and share with my perspective

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

    best tnks buddy

  • @dhitishreemaikap9985
    @dhitishreemaikap9985 2 года назад

    Please do one crud operation using spring boot with micro service

    • @DailyCodeBuffer
      @DailyCodeBuffer  2 года назад

      We have the same in the channel with complete micro service implementation

  • @BhaktaBhusanDas
    @BhaktaBhusanDas Год назад +1

    👍

  • @bharathindu9205
    @bharathindu9205 2 года назад

    Bro how one can get permanent WFH job. Which company gives ?

  • @gavarajagadeesh8800
    @gavarajagadeesh8800 2 года назад

    Bro we want videos on graph ql.

  • @balramcheryala
    @balramcheryala 2 года назад

    Shabbir Nice Hair style 😎

  • @denji3397
    @denji3397 Год назад

    Thank u

  • @HappyTest-rr3jq
    @HappyTest-rr3jq 9 месяцев назад

    golu beta masti nahi

  • @hovosukiasyan7657
    @hovosukiasyan7657 Год назад

    Content is good, but the language is a complete disaster:D

    • @DailyCodeBuffer
      @DailyCodeBuffer  Год назад

      Sorry about that
      Could you please help me how can i improve?

    • @ikrammaududi6205
      @ikrammaududi6205 8 месяцев назад

      ​@@DailyCodeBuffer, your speaking is good already