Post Reply 
RPL Mini-Challenge: All Odd Digits?
07-08-2017, 11:46 AM
Post: #26
RE: RPL Mini-Challenge: All Odd Digits?
(07-08-2017 11:28 AM)Csaba Tizedes Wrote:  Just for fun, your code with a little polishing - without testing, timing, etc...:

Code:

<<
  0 -> len
  <<
    ->STR 1 9 FOR i i ->STR "0" SREPL 'len' STO+ 2 STEP
    SIZE len ==
  >>
>>

Csaba

Horn's evaluation method gives 22.4 as your score.

Programme seems to work correctly.

The ugliness of my programmes shames me - please help by supplying improvements.

By improvements I mean shorter & faster versions.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread



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