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.
Maybe its valuable to note that
out := ""
is the same as
var out string
which doesn't need to be initialized as the Zero Value of a String is by default ""
For example?
But isn't it a good thing that you have to think for a while before solving a task?
Depends on the situation and constraints
is fmt.Sprintf a good way to save a value?
Approved
sorry I just wanted to test generics
edge_cases_and_bugs !!!! [sounds = 'ping-pong-ping-voom-wizz-ping-wizz-ping-pong-ping-pong-ping-pong-foom-bang-plop-pong-ping-pong-ping-pong-ping-pong-ping-pong-ping-klak-bing'];
'ping-pong-ping-voom-wizz- // pong win
ping-wizz- // pong win
ping-pong-ping-pong-ping-pong-foom-bang-plop- / ping win
pong-ping-pong-ping-pong-ping-pong-ping-pong-ping-klak-bing'/ pong win
but random test showing [edge_cases_and_bugs] [expected 'pong' to equal 'ping']
Help whats wrong with it?
I fixed the bug about the double hits. However, for this test you are wrong, the correct answer is
pong
:Random test #60: "pong-ping-pong-ping-funk-pong-ping-pong-ping-pong-ping-pong-bong". Expected = pong
seems like violation of rules
seems like tests in Golang are broken
and one more thing: There are double hits in Golang random tests while in description it is said there won't be double hits
Depends how many women there are. When there are two 10 Chads and two women, both Chads get one chick (the first chick chooses one Chad randomly, the other picks the one without a girlfriend, so the other Chad).
But if there is a 9 and a 10 Chad, the 10 gets both girls, and the 9 is left with his hand.
'Men of level 8 or above (aka Chads) try to get 2 women, men below that are content with one'
'When women have a choice between two equally glamorous Chads, they prefer the one without a girlfriend'
so if there are two equally glamorous Chads, what will happen? both gets one or how? i don't quite understand
the desc is awesome
Rust translation
Loading more items...