Post Reply 
RPL Mini-Challenge: All Odd Digits?
07-03-2017, 10:29 AM
Post: #18
RE: RPL Mini-Challenge: All Odd Digits?
My take:
Code:
\<< \->STR { "0" "2" "4" "6" "8" } POS \GSLIST NOT \>>
58 bytes, worst case time on 1000-digit input (111...111) was 0.1969 seconds, best case would be 86420111...111 so the POS command finds each digit early, which took 0.0767 seconds. Scores would be 11.4202 and 4.4486, respectively.
Now what would constitute "average" input?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: RPL Mini-Challenge: All Odd Digits? - 3298 - 07-03-2017 10:29 AM



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