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

Function check_range

CodeChef_problems/ELEVTR/solution.cpp:7–15  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

5
6/********************************************************/
7int check_range(int *B, int Max, int N)
8{ int i;
9
10 for (i=0; i<N; i++) {
11 if ((B[i] != -1) && ((B[i]<1)||(B[i]>Max)))
12 return -1;
13 }
14 return 0;
15}
16
17/*********************************************************/
18int get_next_index(int *B, int index, int N)

Callers 1

elevatrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected