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.
Modify The Sequence
Modify The Sequence
Sort by
recency
|
27 Discussions
|
Please Login in order to post a comment
Here is my solution in java, javascript, python, C, C++, Csharp HackerRank Modify The Sequence Solution
def modifySequence(arr):
Here is Modify the sequence problem solution - https://programs.programmingoneonone.com/2021/07/hackerrank-modify-the-sequence-problem-solution.html
Could someone give me a hint or a useful midrange test case? All the small ones pass and big ones are too big to debug. At each step I'm considering the possibilities that either current number in sequence is changed or last one is changed or nothing is changed. I'm going to add my code, would appreciate if someone would be kind enough to provide a test case that is not too big where my code fails.