Stop being the product.
Become the owner.
or
sign uplog in

Is the best case here O? Hi, still new to algorithm…

Is the best case here O?

Hi, still new to algorithm analysis and need some help confirming my answer or not.

I assumed that best case would be O(1) in this scenario if size of the array is either 0 or 1. But trying to review my answer with online resources, it say's that O(1) doesn't count here?


What is the definite answer here?
#technology
source
earnings
4,000 mlx total
$0  total
engagement
8 views
0 reactions

0 comments