input:
let arrayInt = [7,8,3,4,5,9,1,2,6]
output
let newArray = [1,2,3,4,5,6,7,8,9]
how to do that WITHOUT using .sort
method that available in Swift? I just failed in programming test, so I want to know the answer :(
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…