Sherlock and Array

  • + 1 comment

    From my point of view it is not even O(2n). We should take in count complexity of solving algorithm, not complexity of preparing input data.