Question d’entretien chez Infosys

How to reverse a string ?

Réponse à la question d'entretien

Utilisateur anonyme

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