Programming puzzles: processing lists!
|
06-14-2017, 06:02 PM
(This post was last modified: 06-14-2017 06:04 PM by pier4r.)
Post: #158
|
|||
|
|||
RE: Programming puzzles: processing lists!
Werner nice input, although your very usage of the stack sometimes is not so easy to follow if one loses track of what is on the stack (like the fact that you collect only one input in a variable, the other is on the stack). I prefer something that may be bigger but easier to read if I did not touch it for long.
Anyway, the #35 , that with "for + get" is feasible (still, I think that even with for + get the #20 would be quite more demanding), seems working. Actually I am not sure I tested all the corner cases so if you want to play along, do it. It uses, I think, the library of david and also goferlist in case some commands were missing (but I avoided to replicate them) The #35 requires the #36 and an helper. If you have tips were I can improve (keeping things readable), let me know. For the timings, well, I'll do if there is a bit of competition. Code:
Wikis are great, Contribute :) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)