Thanks for this wonderful video. I think I've noticed a small mistake in the bubble sort algorithm. It seems not to do the last iteration needed - to compare the first two items. So, this is an example list where the problem appears: val list: List = listOf( 148, 144, 78, 46, 51, 82, 121, 96, 41 ) The problem seems to be fixed if change the while loop in the alg. to: while(listSizeToCompare>=1){ } // Haven't tested it thoroughly though...
Please help me🙏 How can I update code to achieve following I want to show new array after each iteration of outer loop and want to continue sorting in that array till the array completely sorted.
I just came across your channel. Your teachings are special, please continue with strength❤
please continue making videos like this one!
Love your videos bro, they're really up to date and specific topics. Keep going!
Thank you !
Thanks for this wonderful video.
I think I've noticed a small mistake in the bubble sort algorithm. It seems not to do the last iteration needed - to compare the first two items.
So, this is an example list where the problem appears:
val list: List = listOf(
148, 144, 78, 46, 51, 82, 121, 96, 41
)
The problem seems to be fixed if change the while loop in the alg. to:
while(listSizeToCompare>=1){ } //
Haven't tested it thoroughly though...
Amazing, I`d like see another algorithm
Merge sort will come today 😇
Please make more videos about algorithm
Please help me🙏
How can I update code to achieve following
I want to show new array after each iteration of outer loop and want to continue sorting in that array till the array completely sorted.
Can I do the animation in the XML file?