An interesting programming challenge

Jerry Jensen jhj at jhj.com
Thu Apr 9 23:59:41 EDT 2015


> On Apr 9, 2015, at 7:35 PM, DunbarX at aol.com wrote:
> 
> Here is another. it was posted on this list a few weeks ago by fareastern23. but was never taken up by anyone:
> 
> The 2010 Census puts populations of 26 largest US metro areas at 18897109, 12828837, 9461105, 6371773, 5965343, 5946800, 5582170, 5564635, 5268860, 4552402, 4335391, 4296250, 4224851, 4192887, 3439809, 3279833, 3095313, 2812896, 2783243, 2710489, 2543482, 2356285, 2226009, 2149127, 2142508, and 2134411. 
> 
> Can you find a subset of these areas where a total of exactly 100,000,000 people live, assuming the census estimates are exactly right? Provide the answer and code or reasoning used.
> 
> I ran up against a memory limit in my solution, below what are purported to be LC limits.  It engendered a bug report, which was in fact valid, I had to write a kluge around that issue. But going back to the problem, it may simply mean I am not terribly clever in my methods.
> 
> I may be wrong, but I think there is no solution.
> 
> Craig

Wow, thats a good one. It screams for recursion, which always makes my brain hurt. I’m thinking on it…
.Jerry





More information about the use-livecode mailing list