2560
you are viewing a single comment's thread
view the rest of the comments
[-] lustyargonian@lemm.ee 12 points 1 year ago

Binary search only works on sorted data, i.e. you know which side of the mid point is pointing towards the incident. If the incident leaves no trail, you can't know whether you can discard the left side or the right side, making it a complicated linear search at that moment.

this post was submitted on 30 Nov 2023
2560 points (99.6% liked)

Programmer Humor

19932 readers
1120 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS