HCL Technologies Interview Question: Reverse a string... | Glassdoor.co.in

Interview Question

Java Developer Interview Redmond, WA (US)

Reverse a string

Answer

Interview Answer

3 Answers

21

reversedString = new StringBuilder(string).reverse().toString()

Anonymous on 02-Oct-2016
0

Input s = "abc"
Output s = "cba"

Anonymous on 06-Jul-2018
0

Someone from HCL Technologies gave me information about what to expect in the job interview at Rooftop Slushie.

https://wwww.rooftopslushie.com

Anonymous on 11-Jul-2019

Add Answers or Comments

To comment on this, Sign In or Sign Up.