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.
Quite funny it is legal :)
There is no need to put a return here. Great one liner by the way !
It does not affect on code.
I think Blackw00D forgot to errase that line
a typo
a typo
What is
0;
before return line?In description for task written: ...contain all of the digits from 1 to 9.
What for write more than required?
As we are creating a sudoku validator, we can not make assumptions regarding the inputs. We need to take care of all conditions. If you see the example 2 in the question, there are 0s in the sudoku puzzle.
In the game of sudoku only the numbers 1..9 are used, if use numbers 10 and/or 0 in the game then this another game.
What if you replace all 9's by 10's and all 1's by 0's in a valid sudoku?
std::move should not be used here in return statement. It prevents Return Value Optimization (RVO).
More information here - https://vmpstr.blogspot.com/2015/12/redundant-stdmove.html