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.
not a kata suggestion
Can be changed to:
Still clunky but I didn't want to change the structure.
Your less idiomatic solutions using add1 and sub1 intrigue me.
I wonder if this style disregards efficiency though.
Needs
performance
tag.Requires
O(log n)
solution;O(n)
won't do. That's ok, but solvers deserve fair warning about that.Powerful Tom cat can catch a lot of mice every day, in order to show its naughtiness and generosity,
It appears the word
its
refers toTom
, yes? If so, use the wordhis
, notits
. That was immediately confusing.Put a space between
position
andto
where you havepositionto
So... is
Jerry
a mouse or a rat? They're not the same thing, and if we're talking"Tom & Jerry"
here, he is certainly a mouse.Please consider completely starting over in describing the steps to take. This is the main ISSUE here. Have the friend read the description (without knowing what it's supposed to mean) and then have them explain it back to you.
I changed some descriptions, is it getting better?
solved.
This comment is hidden because it contains spoiler information about the solution
solved.
The input range should be increased because of this.
10000 random tests is too much and solutions starts to look like micro-optimization since even good solutions take like 10 seconds. If you want to test for performance, you need to add a
performance
tag.Needs fixed test with
n
being a power of 2 as an edge case. They only appear in the random tests.The description is totally incomprehensible. I still have no idea how it could be related to what's tested.
solved.
Needs Random Tests.
Loading more items...