Zig Zag Sequence

Sort by

recency

|

71 Discussions

|

  • + 0 comments

    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'

  • + 0 comments

    C++20 Has no code to debug

  • + 0 comments

    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?

  • + 0 comments

    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

  • + 0 comments

    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