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.
console.log
works just fine, yourMath.ceil
is wrong, try your function with 0, for example, it returns 1 instead of 0.Not a kata suggestion, it's a question. And if x is -982.2689999999999 then the equation becomes this:
The problem is in the sign, you're returning it wrong.
If you find more like this, post here: https://github.com/codewars/codewars.com/issues/1734
This comment is hidden because it contains spoiler information about the solution
Tests modified. Your solution is invalidated.
Thanks for your post.
Haskell probably doesn't need specific description even with
Maybe Like
- it'll be in the function signature, and Haskellers should be used to throwing inJust
, even if not explicitly specified, when they seeNothing
in the description andMaybe
in the initial code signature.At some point, rather sooner than later, we should make the description language-agnostic and just talk about Enum (Like | Dislike | Nothing) with perhaps in the solution setup language-specific comments (e.g. Nothing in Haskell vs Just Like | Dislike). Let's try to avoid a maintenance hell on this kata :)
Ooh nice! :]
That would be good to implement, looks like, regardless of what Python does actually. Appropriate datatypes can be language-dependant, and this looks very appropriate!
https://www.php.net/manual/en/language.types.enumerations.php
If and when Python moves from
"Like"
toLike
, please consider moving along with that.I don't know how PHP would achieve this, but doubtlessly there are ways. Help will be available, here, on Discord, or somewhere, if you would like to do so but don't know how yourself.
Translator's first translation - review with loving care and attention to detail ( and knowledge of the language and CW best practices for it ).
No offence intended Ilya. It's just that new kata authors and new translators don't always know the best practices, and rash approvals have been known to happen, ultimately hurting the kata and the translation.
good job dude