Saved Bookmarks
| 1. |
Question:Wedding GameIn a wedding that you are attending, there are some chairs that have digits inscribed at theirbacks. The chairs are lined in a row such that they form a string of the digits. Find theminimum number of sets M that can be formed from these digits such that:1. The number of digits in each set is one or more than one.2. Each set is formed using consecutive digits and no digit can be used more than once.3. In each set, the number formed using the digits is less than or equal to Y.Input Specification:input1: S, string of digitsinput2: Y, No number should be greater than Yinput3: Size of the String SOutput Specification:Your function should return M, the minimum number of setsExample 1:input1: "1234" |
|
Answer» I am not UNDERSTANDING your QUESTION |
|