Thread Title
Programming Contest (DIFFICULTY: EASY) #1
Prize name
$5 PayPal G&S
Requirements and other relevant information
Depending on the responses, and the activity for these type of contests I might do more in the future.
Cool way to practice your problem solving skills and make some money
Very simple, solve the following programming problem:
Write a method public String toPalindrome(String input) which converts the input string into a palindromic number and returns it.
A palindromic number is an integer that is the same when the digits are reversed. Fo example, 232 and 320023 are palindromic, but 324 is not a palindromic number.
Sample input and expected output your method must provide:
toPalindrome("5.") => "5."
toPalindrome("12333.") => "1233321."
toPalindrome("92837465.") => "928374656473829."
toPalindrome("1000000000000000123.") => "1000000000000000123210000000000000001."
Requirements:
You must code your solution in Java.
The first working solution will win the contest. PM me your solution and post on this thread once you have.
It's YOUR solution, if you copy paste some code off the internet or ask for help online you will be disqualified.
If no entries are made by the end-date the contest will close.
If no winning entries are made by the end-date, the contest will close with no winner and a solution will be provided.
End date
Aug 30, 2020
If award date is different from contest end date, please specify.
Programming Contest (DIFFICULTY: EASY) #1
Prize name
$5 PayPal G&S
Requirements and other relevant information
Depending on the responses, and the activity for these type of contests I might do more in the future.
Cool way to practice your problem solving skills and make some money
Very simple, solve the following programming problem:
Write a method public String toPalindrome(String input) which converts the input string into a palindromic number and returns it.
A palindromic number is an integer that is the same when the digits are reversed. Fo example, 232 and 320023 are palindromic, but 324 is not a palindromic number.
Sample input and expected output your method must provide:
toPalindrome("5.") => "5."
toPalindrome("12333.") => "1233321."
toPalindrome("92837465.") => "928374656473829."
toPalindrome("1000000000000000123.") => "1000000000000000123210000000000000001."
Requirements:
You must code your solution in Java.
The first working solution will win the contest. PM me your solution and post on this thread once you have.
It's YOUR solution, if you copy paste some code off the internet or ask for help online you will be disqualified.
If no entries are made by the end-date the contest will close.
If no winning entries are made by the end-date, the contest will close with no winner and a solution will be provided.
End date
Aug 30, 2020
If award date is different from contest end date, please specify.
