Interview Question

Interview(Student Candidate) New York, NY

How to reverse a string


Interview Answer

1 Answer


using two pointers, and the first pointing to the beginning, and the other pointing to the end, and both move to the middle, and do the swapping in the meantime.

Interview Candidate on Jan 31, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.