4 ms·
> What they should be asking you is to show the most optimal way to reverse the array, which is to find a popular highly optimised library and use that, one tha
by ralferoo 4y ago
> What they should be asking you is to show the most optimal way to reverse the array, which is to find a popular highly optimised library and use that, one that is also likely to be far less buggy.
The most optimal way is not to reverse the array at all, but instead index it in reverse later in the code when it's used.