Pregunta de entrevista de Infosys

How to reverse a string ?

Respuesta de la entrevista

Anónimo

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