Post Reply 
Programming puzzles: processing lists!
04-27-2017, 03:56 PM
Post: #52
RE: Programming puzzles: processing lists!
(04-26-2017 06:44 PM)DavidM Wrote:  
(04-26-2017 06:24 PM)pier4r Wrote:  David your new #3, #6, #7, #8 looks like variant C solutions (use whatever you like, not only list operations), am I wrong?

Ah wait there is the sub command, I have to check the Aur.

As soon as possible I will compare them to mine.

That wasn't my intent. I was actually trying to force myself to use list commands wherever I could.

I consider SUB to be a list command in this context, since I am giving it a list and expecting one in return.

Then it is variant A, my "rotate list" is a routine for lists but internally uses the stack, still I consider it variant A since it takes a list as input and returns a list as output. I quickly skimmed the code and missed it. I hope to find time to compare the result (and learn some technique as well). I still have to do the remaining challenges and also computing a suitable random testing generator for challenge #6 (for that I need to compute the probability that out of a random list, I get one valid for the challenge).

Wikis are great, Contribute :)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming puzzles: processing lists! - pier4r - 04-27-2017 03:56 PM



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