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.
it might not work on some random tests, it should be testing for final length not for length of an input
if i didn't check for final length my solution would be like... 79 instead of 85 characters long
tbh tho, I didn't use strip because this test is stupid and only uses spaces
Couldn't figure out how to make it shorter than 85 characters lol
Why can't I find a solution shorter than my solution:
https://www.codewars.com/kata/reviews/5b1c44d2096b94eb8c0004a5/groups/623474c09840220001da7946
why is it so overcomplicated?
for(int i = 0; i < n; i++)
you have the same loop 2 times, first to allocate memory and then to loop through the array, you can allocate the memory in that second loop and then you won't need the first one
forgot to remove #include <stdio.h> and I realised that I don't need to include math