Bubble Sort Algorithm in Python Example: Code and Explanation

Published: 07 July 2022
on channel: John Watson Rooney
2,912
118

Visit https://brilliant.org/JohnWatsonRooney/ to get started learning STEM for free, and the first 200 people will get 20% off their annual premium subscription.

code: https://github.com/jhnwr/algorithms

This video was sponsored by Brilliant.

Patreon:   / johnwatsonrooney  
Thank you to all who help support me via Patreon

Proxies: https://iproyal.club/JWR50
The proxies I use

Hosting: Digital Ocean: https://m.do.co/c/c7c90f161ff6
Where I run my code and deploy apps

-------------------------------------
Disclaimer: These are affiliate links and as an Amazon Associate I earn from qualifying purchases
-------------------------------------

Video

Camera: https://amzn.to/3b5N1ej
Lens: https://amzn.to/3QAm7LT
Lighting: https://amzn.to/3Oivn64

Audio

Interface: https://amzn.to/3OqEqRQ
Microphone: https://amzn.to/3xISfEC
Headphones: https://amzn.to/3zQrwZv

PC

Case: https://amzn.to/3dEz6Jw
PSU: https://amzn.to/3kc7SfB
CPU: https://amzn.to/2ILxGSh
Mobo: https://amzn.to/3lWmxw4
Ram: https://amzn.to/31muxPc
GFX card: https://amzn.to/2SKYraW
32" monitor: https://amzn.to/3sqgq98 (main)
27" monitor: https://amzn.to/2GAH4r9 (vertical)
24" monitor: https://amzn.to/3jIFamt (spare)
Dual monitor arm: https://amzn.to/3wpBvlg
Mouse: https://amzn.to/2SH1ssK
Keyboard: https://amzn.to/3A1B8jU

Timestamps

00:00 Explanation
02:45 Simple Code Example
07:43 Adding Swap
09:41 Comparing Simple&Swap Examples
10:25 Different Data