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.
Hello,
for n=3 shouldnt the pascal triangle used to generate the marix be [[1], [1, 1], [1, 2, 1]] ?
why is only [[1],[1,1]] ?
Did i miss something?
Kind regards
Marco
Don't brute force then. Find a shortcut :)
I see, your logic makes sense, however the desc is still confusing:
Since 2 needs 1's answer to help him, and there's no deadline for calculating it, how the hell does 2 know if 1 doesn't know the answer or 1 is still thinking?
IMO, adding this might help:
Stunning ideas
If that, I'll prefer it to be a new kata. Otherwise thanks for replying.
Merged.
JS fork 🤖🤖
mocha/chai
assertions + ´lodash´ for randomnessthat was fun
wtf is the description, since 2 can only see one color, how the hell can he tell the right answer?
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/229.
Please join the discussion to help us identify duplicate kata and retire them.
Approved by someone
ideally there should be some explanation in the initial code, yes. you can open a suggestion to request that.
Using enums is a great choice when they are supported.
But on Codewars, you don't get the exact definition of the enum, so you need to guess how to use it.
Is it really a good idea to go with that?
because it's better to use enumerated types in languages that support them. the reasons
enum
s are rarely used on Codewars are 1) some translators are not aware of what is most idiomatic in their language of choice and 2) the first languages available on Codewars (JavaScript, Python, Ruby) do not have language support forenum
s¹, so they used string constants instead, and translators to other langauges replicated this interface most of the time.¹: Python now has an
enum
module, but it's a library and not a language constructWhy choose to preload
Color
in Rust rather than useString
, as is commonly done in other languages?Loading more items...