[Solution] Distinct Palindrome CodeChef Solution | CodeChef Problem Solution 2022
Given integers and , generate a palindrome of length consisting of lowercase English alphabets such that the number of distinct characters in the palindrome is exactly .
If it is impossible to do so, print instead.
Input Format
- First line will contain , number of test cases. Then the test cases follow.
- Each test case contains of a single line of input, two integers , as mentioned in the
Solution Click Below:- CLICK HERE
- statement.
Output Format
For each test case, output in a single line, a palindrome of length consisting of lowercase English alphabet such that the number of distinct characters in the palindrome is . If it is not
Waiting Time CodeChef Solution
Joining Date CodeChef Solution
Distinct Palindrome CodeChef Solution
The Optimal Pairs CodeChef Solution
Make them Equal CodeChef Solution
Permutation AND CodeChef Solution
possible to do so, print instead.
Constraints
- Sum of over all test cases does not exceed
No comments:
Post a Comment