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.
You essentially need to calculate a weighted average, using the proportional volume of either potion as weight.
Give the example seen in the description a closer look.
The description could explain this bit a little better, to be honest.
I don't really think this is a spoiler answer, but please flag it as such if you think it should count as one.
Fun kata, made me learn how to use references to capture groups to only replace desired parts of matches.
A really nice alternative to using lookarounds.
This comment is hidden because it contains spoiler information about the solution
Same here. Could use some clarification in the description.
Shame on me: I looked up a solution to a 2kyu kata that I've been trying to crack for about 3 hours.
I copied the solution and wanted to reverse-engineer it since it was in JS (and I was trying with Python), but since I pressed "Attempt" instead of running sample tests, I was granted a load of undeserved points for the kata. I should be at 4kyu at the time of writing this, not 3.
I know my approach can very much be considered cheating, and I don't want points for the solution. Is there a way to forfeit the already submitted solution and the awarded points? Will it get automatically marked as cheating if the system sees me passing a 2kyu kata after attempting to do it for a long time in an entirely different language?
The kata in question is [https://www.codewars.com/kata/5908242330e4f567e90000a3](One Line Task: Circle Intersection). I was desperate for any clues regarding shortening the python code (the kata enforces a pretty strict code length limit), but I couldn't get the syntax to cooperate.
Python translation submitted. My first translation, please review and approve :>
It's pretty bad naming practice, though.
This comment is hidden because it contains spoiler information about the solution
Oh, my bad, first time commenting here
This comment is hidden because it contains spoiler information about the solution