Skip to content

Instantly share code, notes, and snippets.

/*
Binary search on a queue. Complexity approaches 2*N (I think).
Worse than linear search. I feel dirty now.
*/
#include <stdio.h>
#include <stdlib.h>
struct item {
struct item *next;