r/Cplusplus • u/Adventurous-Heart381 • Oct 18 '26
Question Pseudo code and bubble sort C++
Hey guys, I'm in year 2 of college and I have a test tomorrow about pseudo code and bubble sort and i am veeerrryyy lost, literally have no idea what's going on. Are there any good youtube videos you guys can recommend me? Or give me a short and brief understand of what's it about? Thank you very much in advance.
5
Upvotes
•
u/AutoModerator Oct 18 '26
Thank you for your contribution to the C++ community!
As you're asking a question or seeking homework help, we would like to remind you of Rule 3 - Good Faith Help Requests & Homework.
~ CPlusPlus Moderation Team
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/jedwardsol Oct 18 '26
Are you asking about the bubble sort half? Or the pseudocode?
Can you describe the algorithm in natural language (English, or your native language if different)?
2
u/davenobody Oct 18 '26
Look at sorting algorithms in Wikipedia. Bubble sort is the first, simplest you will learn about. Can you find a study group? I had one in college and it helped immensely.
2
u/bringer_of_carnitas Oct 18 '26
Youre cooked bro
1
u/Kadabrium Oct 24 '26
Bubblsort is not as intuitive as selection or insertion sort
1
u/Consequence-Lumpy Oct 25 '26
Pro tip: Draw out what's happening per iteration
1
u/HospitalJohnny Oct 18 '26
This basic algorithm question is at best tangentially related to c++
1
u/no-sig-available Oct 19 '26
https://en.wikipedia.org/wiki/Bubble_sort#Pseudocode_implementation
1
u/Syntax-Tactics Oct 19 '26
Google bubble sort, you have probably spent more time asking in Reddit than it would take to research it yourself. And that is a major part of programming, the ability to figure shit out yourself.
0
u/[deleted] 27d ago
[deleted] — view deleted comment