You are viewing a single comment's thread. Return to all comments →
Additional solution:
def f(arr:List[Int]):List[Int] = { var index = arr.length List.fill(index)({ index = index-1 arr(index) }) }
Reverse a List
You are viewing a single comment's thread. Return to all comments →
Additional solution: