Learn Priority Queue data structures in 5 minutes 🥇

preview_player
Показать описание
Priority queues data structures and algorithms tutorial example explained

#priority #queue #java
Рекомендации по теме
Комментарии
Автор

import java.util.*;

public class Main{

public static void main(String args[])
{
//Priority Queue = A FIFO data structure that serves elements
// with the highest priorities first
// before elements with lower priority

//Strings in default order
Queue<String> queue = new PriorityQueue<>();

//Strings in reverse order
//Queue<String> queue = new

queue.offer("B");
queue.offer("C");
queue.offer("A");
queue.offer("F");
queue.offer("D");

while(!queue.isEmpty()) {

}
}
}

BroCodez
Автор

I used to over think how complicated Priority Queues were until you explained them. Thank you!

vickmaturu
Автор

I was just looking to learn data structures and algorithm’s with java!, you are the best YouTube channel and you are underrated af!

yoavpazfriedman
Автор

Dude, you are the best! My, god! Your explainations are so clear and easy to understand!

atl_tube
Автор

Bro, I have been watching videos/reading webpages for the better part of 1h and not one single dickhead could explain this as clearly as you did. THANK YOU!

mohamedelhalloufi
Автор

How the hell is this channel so underrated? You're the best!

nikezair
Автор

BRO you are the best. I love your videos. God bless you and your loved ones and stay safe man.

harshverma
Автор

Your voice is awesome bro, you deserve more views and subs :).

opmanbros
Автор

I was just watching linear search...and new video came❤️...man I love this channel

issac
Автор

Bro you are one of the best teacher in YouTub...

ibrahim
Автор

For those wondering it is just std::set in C++. Hopefully this will help.

Red_Tutorials
Автор

BRO YOU ARE ABSOLUTELY AMAZING 👏 KEEP GOING AND NEVER GIVE UP 🙌 AS EMINEM SAID 📼

bi
Автор

Yay, those are priority queues! Nicely explained, Bro!

Snowmanver
Автор

Thank you for the great content. But I think that PriorityQueue is PIPO(Priority-in, Priority-out) and not FIFO (FIrst-in, First-out)

felipeabreumotta
Автор

Thanks Bro'naldo, another well explained vid.

FukSN
Автор

make video on java netBeans and java networking

anshtiwari
Автор

LET'S GOO! GIGACHAD REACHED 200K! KEEP IT UP!

syllight
Автор

Keep going bro! Road to millions of subs!

ethioboy
Автор

Can you make video about Data structures using only C?

jackgamer
Автор

I think giving some problems to solve in every video is better for understanding the concept and remembering the keywords.

copy_contents