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.
Array
doesn't need any references andContains
is fromSystem.Linq
Description says:
Four of the same symbols in a row wins
Why no information that 4 symbols in a diagonal is also a win?
why
What about [2, 2, 3, 4, 5, 6, 7] array?
Going to work with the tests, but if game score is bigger than 9 it is going to break.
Still a good solution.
Normal soluton: https://www.codewars.com/kata/reviews/5543abb64e405654510001d6/groups/628fa9c041bdea0001bee974
This comment is hidden because it contains spoiler information about the solution
Good idea, but why not use Math.Abs(number) to remove
-
Also actually there is no point in using a list here.
This comment is hidden because it contains spoiler information about the solution
помойка
Why does a 3-line solution seem less clever to people than this?
How?
using System; is useless here.
I would change these tests and add more explanations to the task description, otherwise everything is very unintuitive.
I think in this case it may turn out to be an infinite loop.
For example if the string is something like
example ) example
.So it might be better to use
s.Contains('(') && s.Contains(')')
Loading more items...