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
|
71 Discussions
|
Please Login in order to post a comment
Hi, I'm having an issue with the test cases for ts even the result and expected output is the same. someone nows how to fix this?
Traceback (most recent call last): File "Solution.py", line 174, in run_custom_checker(t_obj, r_obj) File "Solution.py", line 75, in run_custom_checker system_code = code_data[t_obj.submission_language].strip() KeyError: u'typescript'
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