Project Euler | Problem 4 | Largest palindrome product
Problem Description :
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.
Find the largest palindrome made from the product of two 3-digit numbers?
Concept :
A palindromic number or numeral palindrome is a number that remains the same when its digits are reversed. For example 99 is a palindrome but 89 is not.
Java Program :
Output :
References :
https://projecteuler.net/problem=4
https://en.wikipedia.org/wiki/Palindromic_number
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html
https://docs.oracle.com/javase/7/docs/api/java/lang/StringBuffer.html
Thank you friends, I hope you have clearly understood the solution of this problem. If you have any doubt, suggestion or query please feel free to comment below. You can also discuss this solution in our forum.
Tags : Project Euler Problem 4, Solution in Java, Mathematics problems, Largest palindrome product, if else statement, for loop, String, StringBuffer.
Project Euler | Problem 4 | Largest palindrome product
Reviewed by Rohit Agarwal
on
12/15/2016
Rating:
Reviewed by Rohit Agarwal
on
12/15/2016
Rating:



No comments:
Please provide your valuable comments. If you have any suggestion please share with me I will work on it and if you have any question or doubt please ask, don't hesitate. I am your friend, i will clarify all your doubts.