Data Structure Linked list Question:

Do you know how to reverse String in Java?

Tweet Share WhatsApp

Answer:

This is one of my favorite question. Since String is one of the most important type in programming, you expect lot of question related to String any data structure interview. There are many ways to reverse Sting in Java or any other programming language, and interviewer will force you to solve this problem by using without API i.e. without using reverse() method of StringBuffer. In follow-up he may ask to reverse String using recursion as well. See 3 ways to reverse String in Java to learn reversing String using both loops and recursion in Java.

Download Linked list PDF Read All 22 Linked list Questions
Previous QuestionNext Question
Suppose In an integer array, there is 1 to 100 number, out of one is duplicate, how to find?Explain the most efficient method to reverse a linked list?