Intro to Tutorial Challenges

  • + 2 comments

    Yeah, good spot! Like most others, I initially parsed the input into an array to prepare it for a binary search. But, as you've pointed out, the input is coming in linearly so why not inline the search (for this particular problem). I guess it would be a different story if they asked for multiple searches on the same input though.