I love the fact that you put an animation option in. It's not just helpful to see where your heuristic is messing up, it's fun to watch too.
OK, at the cost of taking twice the running time I was able to squeeze into Cody's tiny memory. Now I can think about improving the heuristic...
This runs fine on my machine but I guess Cody is running without very much memory, so it can't handle it...well it was only scoring about 3000 anyway.
Remove all the consonants
Implement a ROT13 cipher
Poker Series 11: selectBestHand
Scoring for oriented dominoes
Dimensions of a rectangle
Spherical surface triangulation
Knights and Knaves (part 1)
pay it forward
the fly, the train, the second train, and their Zeno's paradox
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office