What is the time complexity for converting decimal to binary numbers?

Q & ACategory: Data StructureWhat is the time complexity for converting decimal to binary numbers?
Admin Staff asked 4 years ago

What is the time complexity for converting decimal to binary numbers?
a) O(1)
b) O(n)
c) O(logn)
d) O(nlogn)

1 Answers
Admin Staff answered 4 years ago

c) O(logn)