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.
The title is "Create Phone Number", not "Generate" one. Work smarter, not harder, my friend.
The requirements state that an array of 10 integers is given, and it is implied that the order of integers in the array should be the same as the order of the integers in the phone number. Given those requirements, this solution may be a tad bit wack, but it's certainly not lazy.
This comment is hidden because it contains spoiler information about the solution
i got that.
thanks for the tips :D
This is a mostly correct solution. If pin is null, then this implementation will throw ArgumentNullException, which violates the specification that the function return false for any input other that 4 or 6 digits.