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
|
70 Discussions
|
Please Login in order to post a comment
C++20 Has no code to debug
Hi,
somehow the answer is not accepted even if the output looks same to me.
I copied this Solution in Python: https://github.com/JayantGoel001/HackerRank/blob/master/Zig%20Zag%20Sequence.py
Someone made the same experience?
for Typescript and Javascript the code is initially broken. I see, for instance, in Python there is a code which you could fix, but not tor TS and JS
Am I misunderstanding 'lexicographically smallest'?
The example gives [1, 4, 5, 3, 2] as the answer, but the sequence [1, 2, 5, 4, 3] is lexicographically smaller. Both are 'zig zag sequences' as defined by the problem
output is correct, but fail all testcase???
`