Intern — Middle
Function that reverses the order of array elements
livecode
Task condition
Create a function that takes an array of integers and reverses its elements. The implementation must not use additional memory to store a copy of the array.
func reverseSlice(nums []int) {
// implementation without allocating new memory
}