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.
what format was your output string in. cant seem to figure it out even though my algo works as expected
i think the test checks the value of the string. You dont have to return the string in that case, pointers do their thing
can someone answer where the function findIndex() comes from. this isnt in the standard lib
basically, i write code, it passes most cases but somehow fails 1 or maybe 2 tests. I look through my code for 2-3 days trying to figure it out only to give up, check solutions and the first answer is the exact same as mine. IDK what to say? this kata shouldnt take more than 5 mins
i ended up solving it. My original solution returned the same output as the solution that passed on the all cases. IDK what else to say
is this broken for C?
in my local environment, my code returns the expected values from the tests, but the tests say i don't
dont stress, this kata is a bit wonky. your solution is probably the right one.
Dont stress yourself, the python tests are probably broken or something
i'm probably on the same case right now. any hints?
This is not in-place though. Cool soln still
you arent answering the same question or something. Your math is way off.
I COMPLETED A g964 KATA!!! TODAY, I KNOW I AM A PROGRAMMER
This kata reminds me of my introductory comp sci professor. mofo worded our test, midterms and exams like this. I hope he never knows peace
Dont listen to what people are saying in the comments if you cant pass the attempts, your double loop solution is the solution they are talking about, there is nothing else to it. Your code is timing out because of external factors(maybe internet speed or something like that). I spent our "optimizing" my code, got it to work after aproximating only to see that my basic brute force implementation passed the tests for others but not for me apparently. Check my answer, i included the implementations that didnt "work" for me.
I hate when i have to spend more time trying to understand the math: not because it is part of the problem but because the kata is poorly worded. I dont want to go learn Euler's method just to solve this kata. I mean, i dont have to solve this but its annoying knowing that i could easily solve this if someone explained the concept better in the description.
Loading more items...