Siemens Coding Question – Solved

11 Live
The class uses a novel system where the success of an individual is assigned to a symbol. These symbols have the following precedence: A > B > C > D > E > F The symbols are collected and fed into the assessment robot. The success of the class is determined in the following way, with the output in green at the end: "AAABBCDDEFF" Sometimes it is ambiguous what the output is. In this case, the assessment robot observes the precedence given: "AAABCCCDDEE"

Asked in: Siemens

Image of the Question

Question Image Question Image

All Testcases Passed βœ”



Passcode Image

Solution


Please login to view the solution


Related Questions

| Given an n x m grid, where rows are numbered from 7 to n and columns from 1 to … |
| There are 'N' coders standing in a line, where i denotes the ith position of a … |
| A birthday party was attended by N number of kids, and each kid was given a uni… |
| Given a matrix of size m * n, where m denotes the number of rows (starting with… |
| A traveler is traveling from the city of Zeta to Omega. He starts with X amount… |
| As an operations engineer at Amazon, you are responsible for organizing the dis… |