Zig Zag Sequence

Sort by

recency

|

1052 Discussions

|

  • + 0 comments

    C++20 and Java 15 has no starter code, maybe these should be fixed or removed

  • + 1 comment

    Make sure you only edit 3 lines, even white space/comments count!

    • + 1 comment

      Additional weird notes

      • Commented the code out count as removal of line
      • Making a statement no-op count as removal of line

      Especially the second, is fastrating.

      So if you attempt to make specifically the initial swap no-op (swapping with itself), even the result seems correct, it is still wrong answer.

      • + 0 comments

        yeah, just ran into this. makes 0 sense why this is the case. I'm guessing they have some logic to ensure only 3 changes are made, but the actual output also is wrong, which is interesting...

  • + 0 comments

    Misisng typescript template for findZigZagSequence.

  • + 0 comments

    findZigZagSequence starting code is missing for C++

  • + 1 comment

    My solution which used Python (PyPy3) failed. Same solution in C++ 14 passed.

    • + 0 comments

      it might work for python 3 instead of pypy3, worked in my case!