Duo Security interview question

Write an algorithm to reverse a string in place.

Interview Answers

Anonymous

13 Mar 2015

You should be able to do this :-)

1

Anonymous

20 Dec 2018

// C# char[] ar = st.ToCharArray(); Array.Reverse( ar ); string sNew = new string( charArray );