Count Triplets

  • + 1 comment

    Nice explanation! However if the elements in the array occur randomly why does the direction you traverse matter?