Post Reply 
Programming puzzles: processing lists!
04-21-2017, 02:26 PM
Post: #17
RE: Programming puzzles: processing lists!
(04-21-2017 02:14 PM)pier4r Wrote:  Han, nice catch again. First the "two sublists" is an error, should not have been there. One should identify the smaller generating sublist, that is not valid if the list is equal to the entire sublist. I mean if one has { 3 3 3 4} one could claim that the generating sublist is {3 3 3 4} and that's not interesting.

I will fix the main post as soon as I am with a computer.

Also, another comment on #14 -- are you sure you want to be using lists of size 100 or more (for the input) and requiring the output be an integer? If the list size is 100 or more, it may be better to return the result as a list of digits (again due to overflow). Limiting the integers to a max value of 9 only addresses one of the overflow issues. The other issue is from a large list with 0 being approximately close toward either end of the list.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming puzzles: processing lists! - Han - 04-21-2017 02:26 PM



User(s) browsing this thread: 2 Guest(s)