Skip to content

Instantly share code, notes, and snippets.

View kevingrant's full-sized avatar

Kevin Grant kevingrant

  • Google
  • Mountain View, CA
View GitHub Profile
@kevingrant
kevingrant / eggs.cpp
Created July 21, 2012 15:26
The Two Egg Problem
#include <stdio.h>
#include <algorithm>
#include <vector>
struct State
{
int answer;
int where;
bool calculated;
State() : answer(0), where(0), calculated( false ) {}