ruby-changes:49671
From: hsbt <ko1@a...>
Date: Fri, 12 Jan 2018 18:07:52 +0900 (JST)
Subject: [ruby-changes:49671] hsbt:r61788 (trunk): Fixed typos.
hsbt 2018-01-12 18:07:47 +0900 (Fri, 12 Jan 2018) New Revision: 61788 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61788 Log: Fixed typos. * sample/trick2013/kinaba/remarks.markdown: algorthim -> algorithm * sample/trick2015/ksk_1/remarks.markdown: Limination -> Limitation Modified files: trunk/sample/trick2013/kinaba/remarks.markdown trunk/sample/trick2015/ksk_1/remarks.markdown Index: sample/trick2013/kinaba/remarks.markdown =================================================================== --- sample/trick2013/kinaba/remarks.markdown (revision 61787) +++ sample/trick2013/kinaba/remarks.markdown (revision 61788) @@ -16,7 +16,7 @@ The program contains each ASCII characte https://github.com/ruby/ruby/blob/trunk/sample/trick2013/kinaba/remarks.markdown#L16 ### Internals -The algorthim is the obvious loop "32.upto(126){|x| putc x}". +The algorithm is the obvious loop "32.upto(126){|x| putc x}". It is not so hard to transform it to use each character *at most once*. The only slight difficulty comes from the constraint that we cannot "declare and then use" variables, because then the code will contain the variable name twice. This restriction is worked around by the $. global variable, the best friend of Ruby golfers. Index: sample/trick2015/ksk_1/remarks.markdown =================================================================== --- sample/trick2015/ksk_1/remarks.markdown (revision 61787) +++ sample/trick2015/ksk_1/remarks.markdown (revision 61788) @@ -110,7 +110,7 @@ is simply `/=/` and removing a padding ` https://github.com/ruby/ruby/blob/trunk/sample/trick2015/ksk_1/remarks.markdown#L110 longer terminates, though. -### Limination +### Limitation The implementation requires to manipulate long strings even for some small starting numbers. For example, starting from 1,819, the number -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/