Duo Security interview question

Write an algorithm to reverse a string in place.

Interview Answers

Anonymous

Mar 13, 2015

You should be able to do this :-)

1

Anonymous

Dec 20, 2018

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