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.
Wow, 2 years ago, sorry! I think the same as you (Felixg2468, and also a bit with angello's premise), especially after doing my own kata and explicitly stating that I'm a newbie, asking people to kindly point out my mistakes because we've all been beginners at some point. Despite that, some people responded or reported issues in a very disrespectful manner because proclaimed themselves some kind of know-all (and far from say sorry, them are saying I could admit I am newbie when it's the thing I more repeated in everywhere in the commentaries and documentation, lmao).
On the other hand though, as I mentioned, I consider myself a newbie, but I’ve spent a lot of time thinking and searching for solutions to this kata, and I can honestly say that I’m proud of my work. To move beyond our "newbie selves," you have to put in the effort and explore different approaches to solving problems. My first solutions were lengthy and complex, but now I aim for efficiency, better readability, and even try to achieve one-liners where possible. What I’m saying is that no one should expect to improve their skills by always sticking to the same approach or taking the easy way out, right? Hope you understand what I meant, let's be empathic teaching and helping one to others with proactivity and but from the respect!
you realize not all beginners have as much knowledge as you, so technically this is good for a beginner, get out of 7ku difficulty, this is easy mode.
But the kata says the fighters array will always be the same, so there is no need to support possible addition of new fighters to the fighters array.
It turns a string into a number.
It turns a string into a number.
It turns a string into a number.
It turns a string into a number.
It turns a string into a number.
It turns a string into a number.
It turns a string into a number.
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
Because if n is an odd number, n/2 will be a value with decimal points but the example in the question shows that the question wants sums of integers. The example in the question shows that integers are added to the desired sum but not values with decimal points added to the desired sum.
The example in the question shows that each integer to be added to the sum is the result of every n/2 rounded down (to the nearest integer which is smaller than the n/2 value which has decimal points). Math.floor() rounds a number with decimal points down (to the nearest integer which is smaller than the n/2 value which has decimal points).
Comment erased
Loading more items...