Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
@mattbrendzel, @nbeck the problem lies with the parentheses on the class name Sudoku() and passing self as parameter to the method. Try removing these. Also, write an initialize method.
Hey Giacomo, a few questions:
Good kata, just a few spelling and grammatical issues. The title should be "Simplifying multilinear polynomials".
There are also a few grammatical issues in the description that I can point out, if you'd like.
Thanks, I'll do that
Thanks, I'll do that
@GiacomoSorbi haven't really contributed to this site before, but is there any way to suggest spelling and grammatical improvements to the author? There are a few errors, including in the title
From the description, your function should be case insensitive to the vowels.
What is
$1
?What is
$1
?This comment is hidden because it contains spoiler information about the solution
Use
chars
instead ofsplit(//)
. It's several times faster and (IMO) more readableThe string contains some whitespace alongside the apostrophe. Try
return [] if text.gsub(/\s/, '') == "'"
(credit @frunns)Why is
||=
necessary in creating the hash? Is that an or assignment operator?any reason you used the
or
keyword instead of||
?why did you move letters out of the method and make it global?
Loading more items...