Ad
  • Custom User Avatar

    It would greatly help with understanding if you would break down the counting of sub-arrays in the description. Maybe something like:

    input = {2, 2, 2, 3}

    sub-arrays = [2], [2], [2], [3], [2, 2, 2], [2, 3], [2, 2, 2, 3]

    total = 7