Post Reply 
(42S) challenge: repeat a character N times
01-15-2018, 03:18 PM
Post: #4
RE: (42S) challenge: repeat a character N times
(01-15-2018 03:13 PM)Thomas Okken Wrote:  
(01-15-2018 02:48 PM)Didier Lachieze Wrote:  Here is a 22-byte solution.

Nice, but it has one small bug: when N > 0, it puts one character too many in A, because it appends N characters to the one that's already there.

It works fine because ATOX removes one character from the Alpha register, so we end up we the right number of characters in A.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (42S) challenge: repeat a character N times - Didier Lachieze - 01-15-2018 03:18 PM



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