Demo entry 6425619

test

   

Submitted by anonymous on May 26, 2017 at 05:44
Language: Ruby. Code size: 181 Bytes.

numbers = [1, 200, 900, 300, 1000, 5]

startTime = Time.now
numbers.sort!
endTime = Time.now
elapsedTime = (endTime - startTime) * 1000 
puts "Elapsed time: #{elapsedTime} ms"

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).