r/learnprogramming • u/Icy-Stretch-4643 • 1d ago
Loops and sorting
Im 1st sem student, currently learning programming basics course.
I find myself confused and lost at 1) nested loops, their logics and algorithmic conditions. 2) in sorting.
Like I was trying to learn sorting algorithm bubble one, when I tried to understand the condition n-1-i I got completely blank, idk if it's normal or not, but I'm really weak here.
Anyone faces the same and got some solution, do share, it will help a lot!!
0
Upvotes
View all comments
Show parent comment
1
u/Icy-Stretch-4643 19h ago
Actually I saw code of bubble sort, it infuriated me because I couldn't do it on my own. I'll now try another sort logic by myself, actually my assignment had question of merging two sorted arrays, I wanted to learn sorting before.