(nums)
| 6 | * @return {number} |
| 7 | */ |
| 8 | var firstMissingPositive = (nums) => { |
| 9 | cyclicSort(nums); |
| 10 | |
| 11 | return search(nums); |
| 12 | }; |
| 13 | |
| 14 | const cyclicSort = (nums, index = 0) => { |
| 15 | while (index < nums.length) { |
nothing calls this directly
no test coverage detected