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.
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/178.
Please join the discussion to help us identify duplicate kata and retire them.
This comment is hidden because it contains spoiler information about the solution
Go Translation awaiting approval. Please take a look?
https://www.codewars.com/kata/5808dcb8f0ed42ae34000031/translations#:~:text=%22Switch%20it%20Up!%22%20Go%20Translation
This comment is hidden because it contains spoiler information about the solution
test gives out triangles like (12, 47, 21)
Ruby 3.0 should be enabled, see this to learn how to do it
Ruby 3.0 should be enabled, see this to learn how to do it
Ruby 3.0 should be enabled.
I think at least one more basic tests should be added because with only two examples we cannot be sure of what we're supposed to do.
PHP transtations ready! Please, approve.
No tests with superfluous character at the beginning/end of the string.
Ruby translation kumited, including an updated description -- please check and approve (note: author is inactive)
in python at least, the random tests are sending inputs that aren't triangles... (like 6,55,93)
The direction to use switch statements feels a little forced here. Since there's a 1:1 input/output relation, and the input is always an integer (starting from 0, in fact), an array of key/value pairs feels way more intuitive than writing out the full syntax of a switch statement. I think it's good not just to teach newcomers how to use certain approaches, but also how to identify the best one.
A more switch-suited problem might be one where the function has to behave differently based on the input's type, or based on the outcome when a certain operation is performed on it.
Task is unclear. ( I was expecting eight coordinates as input, and worrying about all sorts of rotations already. )
Also, what's wrong with uninteger numbers? A cube with a volume of 2 or 99 is a perfectly good cube.
I'd commend you for all the maths gobbledygook, but you copied that from Wikipedia, and it has nothing whatsoever to do with the task.
Loading more items...