Further Learning :
Data Structures and Algorithms: Deep Dive Using Java [Udemy] - http://bit.ly/2F5V1uW
Algorithms and Data Structures - Part 1 [Pluralsight] - https://bit.ly/3HZ3ooE
Data Structures for Coding Interviews in Java [Educative] - https://bit.ly/3GVhWo3
Master the Coding Interview: Data Structures + Algorithms [ZTM] - https://bit.ly/3JOjH8v
Learn Complex Data Structures [Codecademy] - https://bit.ly/34DT2MJ
Algorithms Part 1 [Free Coursera Course] - https://bit.ly/3JBtA9p
Data Structures and Algorithms Made Easy in Java [Book] - https://www.amazon.com/Data-Structure...
Hello hello everyone, if you want to check if a string is a palindrome or not but still don't know how to do it then you have come to the right place. Here in this video, we will discuss how to check a palindrome string in Java.
A string is said to be palindrome if the reverse of the string is the same as the string, for example, "abba". The solution for this exercise is to take two pointers i pointing to the start of the string and j pointing to the end of the string. Keep incrementing i and decrementing j while i is smaller than j, then at every step check whether the characters at these pointers are the same or not. If not then the string is not a palindrome else it is.
This is also a good Java programming exercise for beginners to practice coding.
Related Articles
https://www.java67.com/2012/09/palind...
https://javarevisited.blogspot.com/20...
https://javarevisited.blogspot.com/20...
I have also posted a GitHub link to the code.
https://github.com/LongLong2310/Javar...
Tags:
Java
Coding
Palindrome
String
#java #coding #Palindrome #String #100DaysOfCode #Exercise
On this page of the site you can watch the video online [Solved] - How to Check if a String Is Palindrome In Java? Example Tutorial | Code Below with a duration of hours minute second in good quality, which was uploaded by the user Javarevisited 08 February 2022, share the link with friends and acquaintances, this video has already been watched 192 times on youtube and it was liked by 10 viewers. Enjoy your viewing!