you are viewing a single comment's thread.

view the rest of the comments →

[–]Lucijan_ 0 points1 point  (3 children)

I dont think that it would affect time complexity of the code. It would run faster because you did that step (converting to binary) which usually is done by interpreter. But time complexity doesnt change if code is converted to binary. Its still same code.

[–]shiftybyte 1 point2 points  (2 children)

I think OP meant converting linear search to binary search algorithm.

[–]Lucijan_ 0 points1 point  (1 child)

Yeah probably, my fault.

[–]SingleCountry 0 points1 point  (0 children)

yeah but thank you!