asked 118k views
1 vote
Given below is the odd-number function. Which of the following are equal to O(30)? All that apply.

O(n) = 2n - 1

A. The 30th odd number
B. O(29)+1
C. 30
D. 59

asked
User Egeloen
by
8.4k points

1 Answer

5 votes
O(30) is the 30th odd number as well as 2(30) - 1 = 60 - 1 = 59

A and D are correct.
answered
User Plu
by
8.0k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.