Home > other >  Array of grouping problem algorithm
Array of grouping problem algorithm

Time:09-17

For grouping array with n integers, let the same integer value as a group, but I don't know integer concrete numerical value, only the subset is obtained by access array subset in how many numeric values, which may vary from
Such as array: a b c d e, know each are integers, but you can't know the specific values, such as a, b can only access subset get there are several different arrays, if a=b is 1, if a!=b is 2,
Help, how to group all the array,

CodePudding user response:

Subset must be continuous? Can be accessed subset [a, c]
  • Related