Skip to content

2 algorithms to solve the numbers game of the popular British Game Show, Countdown

Notifications You must be signed in to change notification settings

Azazel-Woodwind/countdown-numbers-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Countdown Numbers Game Solver

I present 2 algorithms for solving the numbers game from the popular British Game Show, Countdown. One is based on a Brute Force method, the other is based on a Divide and Conquer strategy. From my testing, the Brute Force method has a better average time complexity, but can be very slow in the worst case. The Divide and Conquer strategy, while being a bit slower on average, has a more consistent run time for all inputs.

Running Solver::solve on the brute force or divide-and-conquer class yields a solution object containing the solution expressed in Reverse Polish Notation.

About

2 algorithms to solve the numbers game of the popular British Game Show, Countdown

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages