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.
creative approach
Thank you for the laugh 🤣
300 IQ 🤯
this is not the best way in coding but the funny part it's the best way from the time complexity
Ridiculous troll with the best solution
most inefficient and retarded way to do this
If the two fighters do not have the same health/attack ratio, bigger ratio is sure to win.
But if both ratios are the same, they would lose in the same round : first attacker wins.
the most douche way to do it, but still works so 6/10 i guess
Very good solution. But why do we return firstAttacker when both counts to same ? I don't think that's mentioned in the description. Please explain the reason.
Not a best practice. Storing values in key-value object gives better performance rather than multiple ifs, isn't it?
imagine having 1! through 12! memorized and walking into this interview question and being like... do you want me to refactor this to O(1) ?
lol I felt the same way!
Good since O(1) solution.
Thanks so much for this!
Love it. It's not even in order. This is true madness. 10/10 solution.
Loading more items...