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.
peak
Ohh I like this, very clever.
Love to see that my exact solution is the top voted one. :)
wow meron palang ganon
Love to see that my exact solution is the top voted one :)
I didn't at once guess to combine single and double quotation marks.
Function signature is
def bestWord(points: Vector[Char], words: Vector[String]): Int = ???
but should bedef bestWord(points: Vector[Int], words: Vector[String]): Int = ???
.This comment is hidden because it contains spoiler information about the solution
is groupMapReduce() a new thing ?
migraine ensuing
Succinctness of Python never ceases to amaze.
Needs updating to Scala 3, and to use toplevel method declaration.
The result can be a float but nowhere does it say the input will be a float
3 reasons why I think this approach should not be encouraged and should have 0 on Best Practices:
eval()
can be dagerous, especially if the input comes from an untrusted source. It can execute arbitrary code, leading to potential security vulnerabilities.eval()
can be slower than direct operations due to the overhead of parsing and interpreting the string.blue_pulled and red_pulled are always lower than the blue_start and red_start (as per problem definition).
Loading more items...