bubbleSort([5, 3, 1, -1, -3]) to return [-3,-1,1,3,5]
bubbleSort([5, 3, 1]) to return [1,3,5]
Output
Great Job!
What would you like to do next?
proceed
Solve other challenges and proceed to the next one immediately.
watch(3 stars needed)
Save your code on the community section and watch how others solved this challenge.
continue
Continue working on the editor to refractor or optimize your code.
Total Level Progress: 75%
Watch how solved this challenge
Premium Content
Please use credits to unlock all premium contents on Adv. Algorithms & Data Structures
Insufficient credit? Buy Credits or to get +10 credits.
Great Job! You've completed the Adv. Algorithms & Data Structures Learning Module!
Congratulations! You’ve solved all of the 35 challenges of Adv. Algorithms & Data Structures and earned a total of 0/105 stars. Go to dashboard and pick the learning module that you want to take up next.
Thank you, but we only allow users who solved at least 10 challenges to write a review.
Unlock Solution
You have 5 credits available. Would you like to use 1 credit to unlock this solution?
You have used all your 5 Freemium credits for this month. To earn more credits, you can Go Premium to unlock all solutions and challenges, or you can Invite Your Friends to earn additional free credits.
Insufficient Credits
You have 0 credits available. Buy more credits for as low as $4.99 to unlock this video solution.
Invite your friends to join Hacker Hero and get an additional 10 credits once they join our community
Payment Confirmation
You have credits available. Would you like to use your credits to unlock the premium content of Adv. Algorithms & Data Structures?
Unlock more video solutions and premium contents, Go PRO, Buy Credits or to get +10 credits
Insufficient Credits
You have credits available but this module requires credits. Do you want to buy additional credits to access ALL premium contents of Adv. Algorithms & Data Structures?