You can apply both linear and binary search in an array (for binary search, the array must be sorted though). For linked list, you have to rely on linear search only (even if it is sorted).
Next: Insertion …
No related posts found
why we can not use binary search in linked list even it is sorted,what is main reason behind this fact?
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login
1 Comment
why we can not use binary search in linked list even it is sorted,what is main reason behind this fact?