Jashobant Besrajashobant.hashnode.dev·Jul 3, 2023Check if a string is a palindrome.public class Test { public static void main(String[] args) { String str = "jungle"; boolean ans = isPalindrome(str); if (ans == true) { System.out.println("Given string is a palindrome"); } else { ...JavaAdd a thoughtful comment1 commentTop commentsMehzabin Aothoi·Jul 3, 2023Jul 3, 2023That's a good approach but have you tried solving it using a Stack? ·Reply
Mehzabin Aothoi·Jul 3, 2023Jul 3, 2023That's a good approach but have you tried solving it using a Stack? ·Reply