This is a companion discussion topic for the original entry at https://toph.co/tutorials/binary-search
This is a companion discussion topic for the original entry at https://toph.co/tutorials/binary-search
The tutorial is great! Explained everything clearly. But it’d be much clearer and correct if you changed the X’s in the algorithm part to lower case x, as the function binarySearch()
takes the target integer as x
, not X
1 Like
Thank you @anonyo.akand for pointing out this issue. I am sorry I somehow didn’t notice your post here when you actually made it.