title: Count Minimum Number Subsets Subsequences Consecutive Numbers
signature: def countMinimumNumberSubsetsSubsequencesConsecutiveNumbers(arr: List[Int], n: Int) = {
source_py: def count_minimum_number_subsets_subsequences_consecutive_numbers(arr, n):
      x = sorted(arr)
      count = 1
      for i in range(0, (n - 1)):
          if ((x[i] + 1) != x[(i + 1)]):
              count = (count + 1)
      return count
source_cpp: int count_minimum_number_subsets_subsequences_consecutive_numbers(vector<int> arr, int n) {
    sort(arr.begin(), arr.end());
    int count = 1;
    for ( int i = 0;
    i < n - 1;
    i ++ ) {
      if ( arr [ i ] + 1 != arr [ i + 1 ] ) count ++;
    }
    return count;
  }