Zig Zag Sequence

  • + 0 comments

    Too stiff check.
    In C++11 it allows the following set of changes:

    06: int mid = (n - 1) / 2;
    10: int ed = n - 2;
    14:   ed = ed - 1;
    

    but does allow the following:

    07: ; // dropped first swap
    09: int st = mid - 1;
    14:   ed = ed - 1;
    

    Though the resulting output is exactly the same.