hi Riley, you're right. I don't comtemplate the case when the string is NULL.
In the instructions, it said the following :
"The given string is not nil/null/NULL/None, so you don't have to check that."
that's why I skipped over.. did I misunderstand this?
hi I am doing this exercise in C and am confused as to what my error is.
Could someone have a look? I am passing all mandatory tests but can't see the ones I am failing in random tests.
Thank you!
Hi I'm doing this project in C, locally I get all the cases and the answers correct, yet I get a time out. I assume it's because of my last loop where I try to find k. I haven't figured out how to make it more efficient. If anyone has a hint, I would appreciate it :)
I think I made it overly complicated and for sure there is a better method. I m just trying to understand why my method doesn't work. Let me know when you can cheers :)
I didn't yet but I think it has to do with my decimals. I think (not sure) that my function doesn't take into account all the decimals present in some of the tests because my result is always slightly off.
Hi, I'm still trying to find a way to answer this kata. I understand that when length == 0 then calculating the average is impossible as any number different from 0 / 0 won't work. I tried returning 0 as the average if length == 0 but that shouldn't work and it doesn't. Could anyone point me in the right direction?
Thank you for your help! i saw my mistake :)
hi Riley, you're right. I don't comtemplate the case when the string is NULL.
In the instructions, it said the following :
"The given string is not nil/null/NULL/None, so you don't have to check that."
that's why I skipped over.. did I misunderstand this?
hi I am doing this exercise in C and am confused as to what my error is.
Could someone have a look? I am passing all mandatory tests but can't see the ones I am failing in random tests.
Thank you!
I don't see where I failed a test for the C kata
Hi I'm doing this project in C, locally I get all the cases and the answers correct, yet I get a time out. I assume it's because of my last loop where I try to find k. I haven't figured out how to make it more efficient. If anyone has a hint, I would appreciate it :)
Hi I am writing my code in C and its seems I have a memory problem with my pointer but I don't really understand why? edit i found it
This comment is hidden because it contains spoiler information about the solution
I think I made it overly complicated and for sure there is a better method. I m just trying to understand why my method doesn't work. Let me know when you can cheers :)
i found it!
I didn't yet but I think it has to do with my decimals. I think (not sure) that my function doesn't take into account all the decimals present in some of the tests because my result is always slightly off.
alright got it, thank you for the tips!
This comment is hidden because it contains spoiler information about the solution
cheers I really appreciate your help! I ll try it out :))
sorry to ask but when you say locally you mean outside of codewars from something like vscode?
Hi, I'm still trying to find a way to answer this kata. I understand that when length == 0 then calculating the average is impossible as any number different from 0 / 0 won't work. I tried returning 0 as the average if length == 0 but that shouldn't work and it doesn't. Could anyone point me in the right direction?
Loading more items...