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.
Good kata, thank you!
approved
OCaml translation
I made the wording more specific, but without any more precision, I dont think "rounded up" is ambiguous, it always refers to the next integer. Otherwise, it would be written "rounded up to the 3rd decimal" or similar.
fixed
you do not suggest any improvement :/
Needs a better description. "Rounding up/down" can be ambiguous. If 7.51 is an input, is rounding up 7.60 or 8.00?
this note has been removed at some point
you are not using the provided parameter
sizeas you should, instead you doint length = sizeof(arr) / sizeof(int);, which does not work when the array is a function argument. arrays are passed to functions as pointers, the information about their length is lost in the processthis is already suggested there
This comment is hidden because it contains spoiler information about the solution
Basically just used to validate a statement on the left side, if true return whatever is directly after "?", if not return whatever is after ':'. It's quicker to write than an if else once you get used to the syntax.
You are making a few mistakes. You do not need to provide your own inputs, that's what the input
xis for in the function definition. Additionally, you need to return the output, not print it.You might find these two docs helpful:
I tried using the strip() and the replace() method on Python, but nothing is working. Am I doing doing something wrong or do I have to use another method entirely?
now on dart Translation Dart
Author inactive
Loading more items...