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.
Alr, could've probably guessed that but being more sure is always nice. Thx :D
One-time math calculations are normally
O(1)
, although it depends on how they are implemented.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
alright thx, btw my original plan was to just make a simple function where you'd have to see how many times num2 fits in num1, is that a good kata instead of my thing or is it also a bit meh
would go a little like this
With this code you could see how many times num2 fits in num1, though it's pretty basic, it's still something new ppl could use to learn about modulus right?
There are a lot of low quality katas from ancient times
https://docs.codewars.com/authoring/guidelines/submission-tests
There should be full specifications (e.g. round up/down/...), not "with this input I got this output".
In this case the best option is: avoid floats and pass only integers.
Should I remove this kata then to prevent confusion for others or can I just leave it up.
Nvm it's retired
Choose a task (more complex than a builtin function call) and pass valid args of the right type.
You should read kata authoring guidelines next time before creating a kata
What could I change then? It's my first kata so I'm just trying stuff