remove value 'v' from array
| 32 | |
| 33 | // remove value 'v' from array |
| 34 | static void remove_value |
| 35 | ( |
| 36 | int *arr, |
| 37 | int v |
| 38 | ) { |
| 39 | int n = array_len(arr); |
| 40 | for(int i = 0; i < n; i++) { |
| 41 | if(arr[i] == v) { |
| 42 | array_del_fast(arr, i); |
| 43 | break; |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | // heap compare function |
| 49 | static int cmp |
no test coverage detected