L Lâm Phung New member Sep 17, 2021 #1 What is the worst case runtime of linear search(recursive) algorithm? A. O B. O(logn) C. O(n$^{2}$) D. O(nx)
What is the worst case runtime of linear search(recursive) algorithm? A. O B. O(logn) C. O(n$^{2}$) D. O(nx)
K Khang Lê New member Sep 17, 2021 #2 Answer: A Explanation: In the worst case scenario, there might be a need of calling the stack n times. Therfore O. Upvote 0 Downvote
Answer: A Explanation: In the worst case scenario, there might be a need of calling the stack n times. Therfore O.