Friday, June 16th, 2017

Fearless Jeter Bunny Salami

25hrs and 43min, the time period between 6:46a Sunday May 14, 2017 (when my flight touched down) to 8:30a Monday May 15, 2017 (when my return flight took off). Witnessing the ceremony to retire Derek Jeter’s #2 occupied a portion of time around 6:35p +/- travel time to and from Yankee Stadium, but what about […]

Friday, January 13th, 2017

Hi Ho! Cherry-O

As our daughter approaches 3 years old she has begun to play some simple board games, one of which is Hi Ho! Cherry-O. While playing it recently my wife lamented that the game was taking forever to end. The analysis in the Wikipedia page is for a single player, but the majority of the time […]

Friday, March 23rd, 2012

Royal Flush in the Family

tl;dr Last month I was part of an event 6 times rarer than winning the MEGA Millions Lotto jackpot. My grandfather played poker with a core group of friends (to my knowlegde he did not play in card rooms or casinos) and taught me the basics of the game. We played Five-card draw with penny […]

Thursday, September 15th, 2011

Scamazon Credit Card has a no annual fee rewards Visa card with a simple points earning structure: 3 Points: For every $1 spent on 2 Points: For every eligible $1 spent at gas stations, restaurants, drug stores, and office supply stores 1 Point: For every other $1 spent On the plus side the card doesn’t charge […]

Wednesday, July 6th, 2011

Halfway To Hawaii

During a recent United flight from San Francisco to Maui, I played the “Halfway to Hawaii Game”. The objective, determine the exact time the airplane would reach the geographical midpoint of the flight to Hawaii. Shortly after takeoff, the crew provided this flight data: Departure – 6:07a Hawaii time Duration – 4hrs 42min Distance – […]

Thursday, April 21st, 2011

Predicting When Derek Jeter’s 3000th Career Hit Will Occur

Unless Derek Jeter suffers a season ending injury, he will collect his 3000th career hit sometime during the 2011 season. Before opening day, Mike Vaccaro of the NY Post thought it would happen around June 7th based on Jeter’s historical average of 1.27 hits per game. Through the first 16 games of 2011, Jeter had […]

Friday, October 22nd, 2010

Project Euler Problems #18, #19, #20 and #67

Problem #18, find the greatest sum of numbers along a path in a triangle of numbers, looks like a standard tree search problem. However, there’s a note at the bottom stating a brute force method won’t work for a harder/bigger version in problem #67. So I decided to skip the exercise of writing the tree […]

Sunday, June 27th, 2010

Project Euler Problems #15, #16, #17

Problem #15 Starting in the top left corner in a 20 by 20 grid, how many routes are there to the bottom right corner? I often used this question during interviews and suprisingly, very few candidates were able to make much progress with it. I wasn’t looking for a candidate to code it 100% correctly […]

Saturday, April 10th, 2010

Project Euler Problems #12, #13, #14

Problem #12 Find the first triangle number to have over 500 divisors. As I’m progressing through these problems, certain types/sequences of numbers keep popping up. I’ve started a library of functions called The first thing I did was add a triangle number generator to my library: def triangleNumber(): num = 1 add = 2 […]

Friday, February 5th, 2010

Project Euler Problems #9, #10, #11

It’s time to get back to discovering how much math and python I’ve forgotten… Problem #9 Find the only Pythagorean triplet (a,b,c where a < b < c and a^2 + b^2 = c^2) where a + b + c = 1000. The first thing I decided to do was figure out some bounds based […]