Introduction
It is an easy level array algorithm. I did spend over 20 minutes to think about the idea by myself, how to find a solution using in place algorithm more than a few weeks ago. I could not come out the idea by myself until I read one of discuss.
The idea is to apply three reverse the array in place.
My practice
Here is my C# code.
No comments:
Post a Comment