https://github.com/silva4dev/ruby-bubble-sort-example
Construct a method takes an array and returns a sorted array using Ruby 🎯
https://github.com/silva4dev/ruby-bubble-sort-example
challenge deisgn-pattern hackathon logic-programming ruby
Last synced: 12 months ago
JSON representation
Construct a method takes an array and returns a sorted array using Ruby 🎯
- Host: GitHub
- URL: https://github.com/silva4dev/ruby-bubble-sort-example
- Owner: silva4dev
- Created: 2023-03-04T18:27:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T18:32:25.000Z (over 3 years ago)
- Last Synced: 2025-06-09T16:05:24.284Z (about 1 year ago)
- Topics: challenge, deisgn-pattern, hackathon, logic-programming, ruby
- Language: Ruby
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bubble Sort
Build a method #bubble_sort that takes an array and returns a sorted array. It must use the bubble sort methodology (using #sort would be pretty pointless, wouldn’t it?).
```
bubble_sort([4,3,78,2,0,2])
=> [0,2,2,3,4,78]
```