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.
This comment is hidden because it contains spoiler information about the solution
they did not
How did you avoid the warning about comparing an int to size_t?
invalid solution, fails for negative numbers.
example input: find_longest([1, -20, 100]) # should be 100
the purpose of this website is education, not passing the provided test cases with the least amount of code. this is the problem with "gamified" learning.
"*stringPtr++"
Why are you dereferencing the pointer in the for loop when you want just to increment it?
woohoo
cool recursion worth my learning
It does the trick but there are some really concise solutions here with a fraction of the upvotes...
learnes a big lesson
Nice way to evaluate the arr is not empty or None.
L comment I won't lie
everything was much easier than I thought at first
It can also be None according to the kata description, which would then return None and fail.
This comment is hidden because it contains spoiler information about the solution
Hey, I am still learning c and was wondering if you could use sprintf instead?
Loading more items...