You are viewing a single comment's thread. Return to all comments →
I think there is an error in the given code.
p(x) can be anything in [1,50]
consider this as input:
5
20 21 1 5 6
the output should be : 4 3
but the above code will not produce any output.
Seems like cookies are disabled on this browser, please enable them to open this website
Sequence Equation
You are viewing a single comment's thread. Return to all comments →
I think there is an error in the given code.
p(x) can be anything in [1,50]
consider this as input:
5
20 21 1 5 6
the output should be : 4 3
but the above code will not produce any output.