Skip to Main Content
What's the difference between a.sort and a.sort! ?
See more like this check out our active challenges
$75
top 5
24
submissions
DONE
136 months

To sort an array a in Ruby, you could either do a.sort or a.sort! . What's the difference between the two? Discuss performance and end result. How would you use them? Provide one example where a.sort is better than a.sort! and one example where a.sort! is better than a.sort.

    Submissions will be graded on the following criteria:
  • Meets Deliverables
  • Creativity
  • Clarity
Reward Tiers
5 Winners
will receive $15 each
Leaderboard
$15.00 Samuel Bostick Rochester Institute of Technology
$15.00 Shohan Hasan New York University
$15.00 Jesse Jones San Francisco State University
$15.00 Jonathan Wang University of California at Berkeley
Submission questions


0 characters Average: 1729 characters
Your solution must be at least 200 characters long
Contact Us