+ 3

Someone explain me this code in Ruby

https://code.sololearn.com/cZGhGxeWrg9b/?ref=app

18th Oct 2017, 5:14 AM
Uttam
Uttam - avatar
5 Answers
+ 2
x <=> y returns 0 if x equals y 1 if x is greater than y and -1 if x is less than y
18th Oct 2017, 5:34 AM
nuprivet
nuprivet - avatar
+ 6
SpaceShip Operator 😅
18th Oct 2017, 1:01 PM
Ekansh