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.
it is the first match
but you probably know it by now :-)
The letter after the underscore/hyphen matched in the regex.
There are brackets around the full stop, those brackets are what you can reference with
$1
and so on.It's a shortcut for
value = value || another_value
Just like += is a shortcut for
x = x + y
@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
It's Ruby's "conditional assignment operator". It only assigns the value to a variable if it is nil (or false), otherwise it doesn't do anything. It is necessary in this case to preserve the values in @cache every time the fibonacci method is called. If it was a simple assignment operator, @cache would get an empty hash assigned to it when fibonacci is called, and the solution wouldn't work.
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
Loading more items...