Question: A palindrome is a word, which reads the same backward as forward. Some examples of palindromes are: kayak, radar, mom. Write a function: Class Solution
A palindrome is a word, which reads the same backward as forward. Some examples of palindromes are: "kayak", "radar", "mom".
Write a function:
Class Solution public String solutionint int ;
that, given two integers and returns a palindrome of length which consists of distinct lowercase letters
Examples:
Given your function may return "abbba". There are many other possibilities; for example, it could also return zdzdz On the other hand, "aaaaa" is an incorrect answer as it contains only one distinct letter.
Given your function may return "ppscespp".
Given your function may return "opo".
Assume that:
is an integer within the range ;
is an integer within the range ;
Creation of the required palindrome is always possible.
In your solution, focus on correctness. The performance of your solution will not be the focus of the assessment.
Copyight by Codilly Umited. All Rlghts Reserved. Unauthorized copylng. publleation or disclosure prohibited.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
