We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The C++ solution doesn't pass correctly even with the correct code and the correct output. I changed to the Python version, which did work (with the same code changes to get the correct output, identical to the C++ version.
.
Don't spend too much time on this issue, as I did.
Don't spen
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Zig Zag Sequence
You are viewing a single comment's thread. Return to all comments →
Less than ideal.
The C++ solution doesn't pass correctly even with the correct code and the correct output. I changed to the Python version, which did work (with the same code changes to get the correct output, identical to the C++ version. . Don't spend too much time on this issue, as I did. Don't spen