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.
Rust:
From the description:
The elements in the returned vector (
$k_i$
) must be strictly greater than1
.However, your vector does contain
1
at the end.Not a kata issue.
blue_pulled and red_pulled are always lower than the blue_start and red_start (as per problem definition).
the concept is called a vacuous truth. the tests are correct
according to
evcxr
, which is a rust REPLlol i have the same problem like u bro
like i don't even know why best_friend("jtekeh dek wbwclw gykc", "i", "h") should return True, even the string have no "i"
Thank you for the fix. Cheers!
Fixed (the input type was not correct in initial code).
nah, i wish ChatGPT could optimize like that
just asked it to solve this and it produced the same solution as the most upvoted one
With the first digit being 1 you have also ten numbers: 10, 11, 12, 13, 14, 15, 16, 17, 18, 19. And so on. Find me a number between 1 and 100 not being increasing, decreasing or both.
It doesn't say all numbers under 100 are increasing.
for rust, the tests should look like this
My thoughts exactly. While I ~loved it, imho it shouldn't be upvoted for 'Best Practice'
Hmm, thanks for reporting it. I am not familiar with Rust, maybe somebody else can help.
This comment is hidden because it contains spoiler information about the solution
It's a puzzle, I'd say it's pretty much anything goes. But you don't necessarily need to override anything, at least not in Python, my language of choice.
Well explained! Thanks for sharing your knowledge.
Loading more items...