Lower Bound (Binary Search)

Implemente lowerBound(arr, target) que retorna o menor índice i tal que arr[i] >= target. Se arr não for array, retorne 0. Se todos forem menores, retorna arr.length.

Pendente

Seu código

Dica: implemente exatamente a função lowerBound.

Resultado

Clique em Executar para rodar os testes.