HHC 2016 RPL Programming Contest
|
09-19-2016, 11:43 PM
Post: #16
|
|||
|
|||
RE: HHC 2016 RPL Programming Contest
I initialized the distance to zero, then with a FOR-NEXT loop, get the distance from each letter to it's first appearance in the string (using the SUB command and POS command) and then use MAX to keep the maximum distance.
« 0 1 PICK3 SIZE FOR j j PICK3 DUP j j SUB POS - MAX NEXT NIP » |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)