1
Vote

Program crashes every time due to lack of memory, and is super slow

description

The brute force approach to solving Bananagrams is pretty bad.
 
Proposed solution: instead of calculating every potential solution, implement a new Solver that generates solutions one at a time, stopping after the first valid solution is found.
 
Alternate solution: Re-implement DefaultBoard to use ArrayList instead of Set, hopefully making it much faster to work with.

comments