AD 1 HERE

Java String Reverse- Hacker Rank Solution - GitHub -Tutoriallpointss

              

Java String Reverse-  Hacker Rank Solution - GitHub -Tutoriallpointss 








Problem :-

A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward.


Given a string , print Yes if it is a palindrome, print No otherwise.

Constraints

  •  will consist at most  lower case english letters.

Sample Input

madam

Sample Output

Yes

Solution :-

//Code By Sumit Teli ( Rank 1 In Java)
import java.io.*;
import java.util.*;

public class Solution {

    public static void main(String[] args) {
        
        Scanner sc=new Scanner(System.in);
        String A=sc.next();
        /* Enter your code here. Print output to STDOUT. */
        
    }
}





 

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.