(nums)
| 7 | * @return {number} |
| 8 | */ |
| 9 | var lengthOfLIS = (nums) => { |
| 10 | const tabu = initTabu(nums); /* | Space O(N) */ |
| 11 | |
| 12 | linearSearch(nums, tabu); /* Time O(N * N) | Space O(N)*/ |
| 13 | |
| 14 | return Math.max(...tabu); /* Time O(N) */ |
| 15 | }; |
| 16 | |
| 17 | const initTabu = (nums) => new Array(nums.length).fill(1); |
| 18 |
nothing calls this directly
no test coverage detected