Siemens Coding Question – Solved

5 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

| You are given a board of size M Γ— N where each cell can be either empty ('O') o… |
| Undirected Coloured Graph Shortest Path You are given an undirected weight… |
| Village Voyage A computer game "Village Voyage" has N villages (labeled 1 to… |
| Academic Decathlon Students are being selected for an academic decathlon tea… |
| Sum of Arrays Given two arrays each of length n, arr1 and arr2, in one opera… |
| Count Swaps During Custom Sorting Analyze the efficiency of the following so… |