Skip to content

kprevas/ew1997

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This script solves the problem discussed on Effectively Wild episode 1997: what's the longest streak of games where two teams experienced the same sequence of wins and losses?

The script reads Retrosheet game logs data, and accepts two arguments to limit the minimum and maximum size of spans to consider, although this does not prove necessary in practice: on the full Retrosheet data set, it completes in about 19 seconds on a Mac M1 Pro. Passing "modern" as the third argument excludes 19th century seasons.

Results

All seasons

35218567 total spans
Longest match: 36 games - [[1890 PIT games 78-113, 1875 BR2 games 1-36]]
Total execution time 18924ms

Modern era only (1900-)

32739105 total spans
Longest match: 35 games - [[1997 PHI games 59-93, 2011 FLO games 49-83]]
Total execution time 17832ms

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages