High Definition Standard Definition Theater
Video id : WbF2bLbAUik
ImmersiveAmbientModecolor: #ecab81 (color 2)
Video Format : (720p) openh264 ( https://github.com/cisco/openh264) mp4a.40.2 | 44100Hz
Audio Format: 140 ( High )
PokeEncryptID: 2057e603e48283352ebebeaddd5cf6805fba3574983b5835693433a9b31185290282f1b3fd09efbf01c834b152840158
Proxy : eu-proxy.poketube.fun - refresh the page to change the proxy location
Date : 1732247888327 - unknown on Apple WebKit
Mystery text : V2JGMmJMYkFVaWsgaSAgbG92ICB1IGV1LXByb3h5LnBva2V0dWJlLmZ1bg==
143 : true
Big O explained with a deck of cards
Jump to Connections
631,510 Views • Aug 14, 2024 • Click to toggle off description
If you want to get a job as a programmer, you need to know big O.

#tech #webdevelopment #bigonotation

🎨 My Editor Settings

Atom One Dark
vscode-icons
Fira Code Fon
Metadata And Engagement

Views : 631,510
Genre: Science & Technology
License: Standard YouTube License
Uploaded At Aug 14, 2024 ^^


warning: returnyoutubedislikes may not be accurate, this is just an estiment ehe :3
Rating : 4.952 (531/43,880 LTDR)

98.80% of the users lieked the video!!
1.20% of the users dislieked the video!!
User score: 98.20- Masterpiece Video

RYD date created : 2024-11-22T03:31:28.523954Z
See in json
Connections
Nyo connections found on the description ;_; report an issue lol

484 Comments

Top Comments of this video!! :3

@dale3478

3 months ago

In 1 universe out of the countless possible universes in multiverse, bogosort can perfectly sort data in O(1) time

3.7K |

@SpontaneouslyDeliberate

3 months ago

Manager in job Interview: optimize this linear function to be logarithmic.

Manager after hire: just tell ops to upgrade our EC2 instances.

2.1K |

@teemomain4967

3 months ago

Stalinsort is the best sorting algorithm. Any element not already in order is removed.

1.2K |

@valtarijunkkala

3 months ago

An important note of Big O, it doesn't indicate speed, but rather scaling. This means that better Big O assures better performance at a large scale, but at smaller amounts of data an algorithm with worse Big O may perform better.

610 |

@7heMech

3 months ago

Fireship feeling that AI pressure.

924 |

@Deadgye

1 month ago

The Big O released back in 1999, or the EN dub in 2001. It's only 26 episodes so it's really easy to binge. Every job hunting programmer can easily watch it to ensure they have a very thorough understanding of Big O.

68 |

@farmersneed

3 months ago

Candidate: "Let me explain my cloud architecture experience."
Interviewer: "Just stfu and do the fizzbuzz."

119 |

@jeremylemans3005

3 months ago

Manager: Please explain the O notation.
Me: Do you have a deck of cards?

72 |

@Norfirio

1 month ago

Big O is useful if you are being academic or generic, but in many real world cases you can get significantly better performance if you understand your data.

For example, if you have a deck of cards that isn't sorted, you can easily sort it in linear time by doing the following:

1. Allocate your sorted array with 52 elements
2. Loop over the unsorted deck and calculate an index based on the suit and number (13*suit ID + number - 1) and put the card in that spot in the result sorted array

Always look at the data and problem you have and solve for that. If your problem is sorting decks of cards then solve that problem and don't use a generic method like quick sort or merge sort.

4 |

@Paranoia8972

3 months ago

Sorting something random is at the same time the fastest and slowest method.

38 |

@SkeletonBill

3 months ago

I've been a dev for almost a decade and never once needed to know this, if I was asked in a job interview (and I never have been) I would just shrug.

102 |

@florianwicher

3 months ago

Excuse me, but O(n!) is definitely not the worst possible time complexity 😀 although, realistically, if something is worse, it's of theoretical interest at mos

29 |

@marcr8181

3 months ago

If the deck is sorted no need to binary search. Each card can be accessed directly by its index derived from color and value of the card

16 |

@hankyg329

3 months ago

52 pickup is actually an average time O(2**n) algorithm with no upper bound TC because each time you are randomly choosing a permutation (meaning you could cycle through invalid permutations forever)

17 |

@roganl

3 months ago

Big O.... hmmm sounds like a good name for a tire company.

99 |

@petrlaskevic1948

3 months ago

You could use the fact that a deck of cards only has a few ranks of them. You'd only need to loop the deck once. Give a number to each one. Then have a hashmap, translating card names to these indexes you have. And use an array of integers, where the index tells you, how many of that card are in the stack. As you loop through the stack, looking at the cards, for each one, you lookup it in the array (using the index it has), in O(1), and incrementing its count. After you're done, you simply walk the array of counts once, and output the rank of each card as many times as the number tells you. Boom, sorted stack, linear time

3 |

@ChrisLowe-w4y

3 weeks ago

I was a developer for over 10 years and couldn't understand big O - this made it super easy to understand!

|

@MonsieurSansHonte

3 months ago

“Big O!
SHOW-TIME!”

28 |

@coldicekiller1352

3 months ago

or you can save the most ammount of time by googling a sorting library and praying that the guy that made it knew what they were doing

12 |

@ByteOfRamen

2 months ago

What’s crazy is no matter how many times I learn big O notation I always forget it a few weeks later. Never sticks. It’s been over a year and I have to keep relearning it just cuz it does not stick.

3 |

Go To Top