Your project team needs to work closely with a group of software testers. They have requested that your team create an array generator service to assist with testing software functionality. Create an array generator service.
Its input parameters are:
To create an integer array, S, the following operation is performed exactly m times. S is initially empty. Choose any values[i] that is available, that is, where state[i] = 'T', the same element can be chosen any number of times. Append the value in values[i] to S. For all state[i] = 'O' such that state[i] was 'T', change state[i] to 'T'.
Find the lexicographically largest sequence S that can be obtained after m operations.
Quickshell Backend • Pending