| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function findProvider(): array |
||
| 25 | { |
||
| 26 | return [ |
||
| 27 | // empty input |
||
| 28 | [[], 5, 5], |
||
| 29 | // in the gap (not taken) |
||
| 30 | [[3, 4, 8, 9,], 6, 6], |
||
| 31 | [[3, 4, 8, 9,], 1, 1], |
||
| 32 | // in the sequence (taken) |
||
| 33 | [[3, 4, 8, 9,], 4, 0], |
||
| 34 | [[0, 1, 4, 5,], 5, 2], |
||
| 35 | // do not use "1" |
||
| 36 | [[0, 3, 4, 8,], 4, 2], |
||
| 37 | // full sequence, take next |
||
| 38 | [[0, 1, 2, 3,], 3, 4], |
||
| 39 | [[0], 0, 2], |
||
| 40 | ]; |
||
| 41 | } |
||
| 42 | |||
| 49 | } |