Post Reply 
Programming puzzles: processing lists!
02-12-2019, 04:01 PM (This post was last modified: 02-12-2019 04:10 PM by John Keith.)
Post: #266
RE: Programming puzzles: processing lists!
A couple of questions / suggestions for #44:

To make #44 more generally useful I would suggest making the value of a win start with 1 rather than the arbitrary value of 7. One can then add an offset to the result list if needed, in your case 6 ADD.

For #44.1, should the streaks be only 1's or any non-zero value?
In either case, the solution is very simple:

Code:

Spoiler alert:











Using the ListExt Library, if the non-zero values are all the same,

\<< LRPCT EVAL IFT LMAX
\>>

If the non-zero values are different, the above code can be preceded with [b]NOT NOT[/b].
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming puzzles: processing lists! - John Keith - 02-12-2019 04:01 PM



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