Тёмный

Bubble Sort Algorithm in Python Example: Code and Explanation 

John Watson Rooney
Подписаться 79 тыс.
Просмотров 2,9 тыс.
50% 1

Visit brilliant.org/JohnWatsonRooney/ to get started learning STEM for free, and the first 200 people will get 20% off their annual premium subscription.
code: github.com/jhnwr/algorithms
This video was sponsored by Brilliant.
Patreon: / johnwatsonrooney
Thank you to all who help support me via Patreon
Proxies: iproyal.club/JWR50
The proxies I use
Hosting: Digital Ocean: 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: amzn.to/3b5N1ej
Lens: amzn.to/3QAm7LT
Lighting: amzn.to/3Oivn64
Audio
Interface: amzn.to/3OqEqRQ
Microphone: amzn.to/3xISfEC
Headphones: amzn.to/3zQrwZv
PC
Case: amzn.to/3dEz6Jw
PSU: amzn.to/3kc7SfB
CPU: amzn.to/2ILxGSh
Mobo: amzn.to/3lWmxw4
Ram: amzn.to/31muxPc
GFX card: amzn.to/2SKYraW
32" monitor: amzn.to/3sqgq98 (main)
27" monitor: amzn.to/2GAH4r9 (vertical)
24" monitor: amzn.to/3jIFamt (spare)
Dual monitor arm: amzn.to/3wpBvlg
Mouse: amzn.to/2SH1ssK
Keyboard: 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

Наука

Опубликовано:

 

13 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
Visit brilliant.org/JohnWatsonRooney/ to get started learning STEM for free, and the first 200 people will get 20% off their annual premium subscription.
@dileepamadusanka8786
@dileepamadusanka8786 2 года назад
Thank you for sharing your great knowledge. ❤️
@CrazyFanaticMan
@CrazyFanaticMan 2 года назад
Damn I definitely need more data structures & algorithms for these ridiculous technical interviews... Amazing video, as usual!
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
Thank you!
@bdcash
@bdcash 2 года назад
I can remember writing this in BBC Basic
@stephenasiedu76
@stephenasiedu76 2 года назад
Amazing video content by the way
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
Thanks!
@kavehyarohi2886
@kavehyarohi2886 2 года назад
awesome, big thank you
@dedisupardi2815
@dedisupardi2815 2 года назад
Cool 👍
@BummerSlug
@BummerSlug 2 года назад
Thanks for the video. It is a good thing to see why this is better than brute force but worse than other options.
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
Yes absolutely
@pheona1000
@pheona1000 Год назад
how would you make a short list of products and prices with cheapest free?
@kanovy2258
@kanovy2258 2 года назад
What theme are you using for visual studio?
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
Hey this is github dark on PyCharm but it’s available for vs code too
@karthikb.s.k.4486
@karthikb.s.k.4486 2 года назад
Nice tutorial are you using linux OS ?
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
Thanks, yes Ubuntu! Main OS for a few years now
@trickyplay
@trickyplay 2 года назад
We can sort the list if we make it into sets.
@stephenasiedu76
@stephenasiedu76 2 года назад
I was scraping data from a table once,in the source code I see the data in the table but when using beautifulsoup I only get tbody tags with no data,please how can I solve it or do you have any video on that
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
If the data is in “view source” bs4 should see it, are you definitely getting the right table?
@stephenasiedu76
@stephenasiedu76 2 года назад
@@JohnWatsonRooney The data is not in ' view source' but when you inspect it you can see the data(I think they're using jquery/js to load the data).And do you have any videos on a website which have pagination but when you move to the next page the link doesn't change
@JohnWatsonRooney
@JohnWatsonRooney 2 года назад
I do! I’m on my phone but the video on my channel called “scraping data from JavaScript tables with Python” on my channel I think will help
@stephenasiedu76
@stephenasiedu76 2 года назад
@@JohnWatsonRooney Thanks Man🙏🏻 I appreciate the help
@bardiakhorshidi5711
@bardiakhorshidi5711 2 года назад
for the first time in my life, I didn't get anything from a lecture, Consider this: I am not a beginner. anyway, thank you.
Далее
The most important Python script I ever wrote
19:58
Просмотров 164 тыс.
Unlocking your CPU cores in Python (multiprocessing)
12:16
How Many Balloons Does It Take To Fly?
00:18
Просмотров 69 млн
Explaining EVERY Sorting Algorithm (part 1)
35:35
Просмотров 161 тыс.
Learn Merge Sort in 13 minutes 🔪
13:45
Просмотров 269 тыс.
Python Generators Explained
28:37
Просмотров 147 тыс.
Bubble sort algorithm
10:24
Просмотров 1,7 млн
Intro to Sorting Algorithms in Python - Bubble Sort
9:00
Python Decorators in 15 Minutes
15:14
Просмотров 430 тыс.
Stop Wasting Time on Simple Excel Tasks, Use Python
17:56
Top 7 Algorithms for Coding Interviews Explained SIMPLY
21:22
The Algorithm Behind Spell Checkers
13:02
Просмотров 407 тыс.
11 Tips And Tricks To Write Better Python Code
11:00
Просмотров 605 тыс.
😮Новый ДИРЕКТОР Apple🍏
0:29
Просмотров 9 тыс.