Domanda di colloquio di Infosys

How to reverse a string ?

Risposta di colloquio

Anonimo

20 giu 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