Bubble sort - MATLAB Cody - MATLAB Central

Problem 43568. Bubble sort

Difficulty:Rate
Write your own bubble sort function ( <https://en.wikipedia.org/wiki/Bubble_sort>) to sort all elements in x in ascending order.
You cannot cheat by using the function "sort.m". If your solution even contains the word "sort", the assertion will fail!

Solution Stats

34.58% Correct | 65.42% Incorrect
Last Solution submitted on Jan 02, 2025

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
13
5

Problem Recent Solvers37

Suggested Problems

More from this Author25

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page