Microsoft, Online Assessment for FTE (BIT MESRA ) | Palindromic Number | Concatenation Operations | Minimum Cost of All Necessary Deletions | 2023

Microsoft · Question · Posted Jul 2023

Question 1   You are given a string s, which consists entirely of decimal digits (0-9). Using digits from s, create a palindromic number with the largest possible decimal value. You should use  at least one digit and you can reorder the digits. A palindromic number remains the same when its digits are reversed;  for instance, "7", "44" or "83238". Any palindromic number you create should not, however, have any leading zeros, such as in "0990" or "010".  For example, ...

The full answer & interview discussion are available to premium members.

Log in Create a free account