This question is revolved around the testing of a well-known chef Gordan Ramsay analytical skill the chef prefers the strings but prefers palindromic strings. Today he found an old rope in his garage....



CSE coding question in C++



This question is revolved around the testing of a well-known chef Gordan Ramsay<br>analytical skill the chef prefers the strings but prefers palindromic strings. Today he<br>found an old rope in his garage. The string is so old that some of its characters have<br>run out and are now unknown. The characters that end in the string are represented<br>by '.' and some letters are lower Latin alphabets i.e. ['a' - 'z'].<br>A palindrome-loving chef has decided to create the smallest named palindrome by<br>filling in each finished letter ('.') In a small Latin alphabet. Can you help her finish the<br>job by providing the C++ program for that?<br>Example<br>Input:<br>3<br>a.ba<br>cb.bc<br>Output:<br>a.babba<br>cbabc<br>-1<br>

Extracted text: This question is revolved around the testing of a well-known chef Gordan Ramsay analytical skill the chef prefers the strings but prefers palindromic strings. Today he found an old rope in his garage. The string is so old that some of its characters have run out and are now unknown. The characters that end in the string are represented by '.' and some letters are lower Latin alphabets i.e. ['a' - 'z']. A palindrome-loving chef has decided to create the smallest named palindrome by filling in each finished letter ('.') In a small Latin alphabet. Can you help her finish the job by providing the C++ program for that? Example Input: 3 a.ba cb.bc Output: a.babba cbabc -1

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here