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
|
72 Discussions
|
Please Login in order to post a comment
this worked(C++11) void findZigZagSequence(vector < int > a, int n){ sort(a.begin(), a.end()); int mid = (n)/2; swap(a[mid], a[n-1]);
}
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