Cody

Problem 43568. Bubble sort

Solution 1068748

Submitted on 1 Dec 2016 by goc3
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = rand(1,10); assert(isequal(bubble(x),sort(x)))

ans = Columns 1 through 9 0.0700 0.4267 0.4543 0.5017 0.5349 0.5696 0.6467 0.8086 0.8556 Column 10 0.9474

2   Pass
assessFunctionAbsence({'sort'}, 'FileName', 'bubble.m');

Suggested Problems

More from this Author25

Community Treasure Hunt

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

Start Hunting!