MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / get_next_index

Function get_next_index

CodeChef_problems/ELEVTR/solution.cpp:18–28  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

16
17/*********************************************************/
18int get_next_index(int *B, int index, int N)
19{ int t;
20
21
22 t = index+1;
23 while ((t < N) && (B[t] == -1))
24 t++;
25 if (t == N)
26 t--;
27 return t;
28}
29
30/*********************************************************/
31int complete_seq(int *B, int Max, int N, int initial_direction)

Callers 1

complete_seqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected