Ad
  • Custom User Avatar

    what format was your output string in. cant seem to figure it out even though my algo works as expected

  • Custom User Avatar

    i think the test checks the value of the string. You dont have to return the string in that case, pointers do their thing

  • Custom User Avatar

    can someone answer where the function findIndex() comes from. this isnt in the standard lib

  • Custom User Avatar

    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

  • Custom User Avatar

    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

  • Custom User Avatar

    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

  • Custom User Avatar

    dont stress, this kata is a bit wonky. your solution is probably the right one.

  • Custom User Avatar

    Dont stress yourself, the python tests are probably broken or something

  • Custom User Avatar

    i'm probably on the same case right now. any hints?

  • Custom User Avatar

    This is not in-place though. Cool soln still

  • Custom User Avatar

    you arent answering the same question or something. Your math is way off.

  • Custom User Avatar

    I COMPLETED A g964 KATA!!! TODAY, I KNOW I AM A PROGRAMMER

  • Custom User Avatar

    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

  • Custom User Avatar

    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.

  • Custom User Avatar

    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...