Posts by salvianoo • 11 points
1 post
-
1
votes1
answer31
viewsA: Error comparing Array in IF
The way you’re creating arrays Array.new(5) it returns an array with 5 positions with values nil. [nil, nil, nil, nil, nil] Just create the v1, v2 arrays by just assigning [] the variables v1, v2 v1…