Suppose we had a list of n integers sorted in ascending order. How quickly could we check if a given integer is in the list?
Because the list is sorted, we can use binary search to find the item in time and additional space.
Reset editor
{"id":8592030,"username":"2018-06-14_02:34:08_l9wg(!","email":"liencf@gmail.com","date_joined":"2018-06-14T02:34:08.228184+00:00","first_name":"志峰","last_name":"連","full_name":"志峰 連","short_name":"志峰","is_anonymous":false,"is_on_last_question":false,"percent_done":0,"num_questions_done":0,"num_questions_remaining":46,"is_full_access":true,"is_student":false,"first_payment_date":"2020-08-29T15:29:02.529209Z","last_payment_date":"2020-08-29T15:29:02.529209Z","num_free_questions_left":0,"terms_has_agreed_to_latest":false,"preferred_content_language":"csharp","preferred_editor_language":"","is_staff":false,"auth_providers_human_readable_list":"Google","num_auth_providers":1,"auth_email":"liencf@gmail.com"}
“Interview Cake prepped me super well for my data science technical interview, and now I have my dream job!
—
Hyatt
. . .