do |param|
index+=1
if param.is_a?(String)
arr2 << param
arr1.delete(param)
end
end
arr3 = arr2 + arr1
puts arr3[1]
print arr3
Failed test #1 of 3. Wrong answer This is a sample test from the problem statement! Test input: 6 3 4 wallet Correct output: 6 ["wallet", 6, 3, 4] Your code output: 6 ["wallet", 6, 5, 4]
Измените на 3
Failed test #2 of 3. Wrong answer
Обсуждают сегодня