Frage im Vorstellungsgespräch bei Infosys

How to reverse a string ?

Antwort im Vorstellungsgespräch

Anonym

20. Juni 2019

Take two pointers, one at start and one at end. Start swapping the values at the two pointers and increase start by one and decrease end by one. Repeat the process till start