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.
- Zig Zag Sequence
- Discussions
Zig Zag Sequence
Zig Zag Sequence
Sort by
recency
|
928 Discussions
|
Please Login in order to post a comment
PHP feels broken on this exercise. No boilerplate function given so I must read stdin and then I get a failure on this result:
Input (stdin)
Your Output (stdout)
Expected Output
Task said: "In this challenge, the task is to debug the existing code to successfully execute all provided test files." and "You can modify at most three lines in the given code. You cannot add or remove lines of code." But code is not given and you have to write quite long code. Am I wrong?
the example in the description is intentionally vague and wrong, the lexicographically smallest arrangement is 1,2,5,4,3 not 1,4,5,3,2
problem is much easier to solve understanding this because the constraint limits how complex you can be on implementation
Not sure what is wrong for c++14: 1 2 3 7 6 5 4 -> my out 1 2 3 7 6 5 4 -> expected But still I get wrong answer, are tests mesd up?
Complete mess for C# version. Test completely invalid