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.
I appreciate the response. Even googling didn't seem to make it make sense so I'm going to use another platform to learn the foundational skills I need and then come back to tackle the Katas. Cheers!
Do not worry too much about this, that's how everyone started. You can see this FAQ paragraph for some minimal requirements, and remember that you can always ask questions in
#beginners
and#help-solve
channels of CW Discord.I have zero scripting language experience and was told to start on Codewars. I chose Python as my first language. I'm sure this is supposed to be extremely simple but I've tried for like an hour to figure this out and I'm completely stumped. Man this is embarassing lol
This comment is hidden because it contains spoiler information about the solution
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions
Approved, but I don't have the privileges to close this.
Согласен. Задача очень простая.
Очень простая задачка.
Enabled in this fork
Seems like a floating-point error. The tests should probably be changed to allow for precision errors (e.g. using
assert.approximately
instead ofassert.strictEqual
)."an integer" can't be zero? be glad you're not getting negative numbers.
Haskell original specifies ( by omission ) and tests with negative numbers, which are to be handled as
0
. Other languages do not necessarily test for this.For an 8kyu, asking solvers to figure out what
repeat -1 "ab"
looks like seems like asking too much.IMO kata should specify "non-negative number," and only test with those.
"Non-negative" is not specified. I don't know exactly what "
a
, repeated exactly-1
times," looks like, but that's your problem. Closing this issue, because you made it a "your code" issue instead of a kata issue.Haskell random tests guarantee the first random test will be that first case, and it is exceedingly unlikely the other two cases will not come up.
QuickCheck generates random cases of increasing possible size, it starts with
0
, and there are then 99 chances of generating a case empty in either argument. I have not done the math, but getting 99 non-empty cases seems unlikely.The negative numbers might be a problem though - addressing that separately.
Loading more items...