Ad
  • Custom User Avatar

    Would appreciate if we can have few more examples explaining some more cases. Or at least a link where you can learn more about subarray contiguious subsequence or some direction. For example, how did [1,1] only gives you 2 not 3 ('[1,1],[1],[1]' no?) and [1,2,3,3,2,1] is not 10 ([1,2,3,3,2,1], [1,2],[2,3],[3],[3,2],[2,1],[1],[3],[3],[1]) but 12.