Re:Infinite Craft
by NAR8789 on Thursday February 01, 2024 @05:31AM
(#39214507)
I think you can reduce state. Rather than tracking maxElementReached per-element, maintain a single maxElementReached for the first n elements. March the first n elements forward in lockstep, and grow n by 1 whenever you exhaust all available combinations for that set
In pseudocode...
[ Parent
| on HN ]
There are no comments on this comment yet.