Ad
  • Custom User Avatar

    Wow, 2 years ago, sorry! I think the same as you (Felixg2468, and also a bit with angello's premise), especially after doing my own kata and explicitly stating that I'm a newbie, asking people to kindly point out my mistakes because we've all been beginners at some point. Despite that, some people responded or reported issues in a very disrespectful manner because proclaimed themselves some kind of know-all (and far from say sorry, them are saying I could admit I am newbie when it's the thing I more repeated in everywhere in the commentaries and documentation, lmao).

    On the other hand though, as I mentioned, I consider myself a newbie, but I’ve spent a lot of time thinking and searching for solutions to this kata, and I can honestly say that I’m proud of my work. To move beyond our "newbie selves," you have to put in the effort and explore different approaches to solving problems. My first solutions were lengthy and complex, but now I aim for efficiency, better readability, and even try to achieve one-liners where possible. What I’m saying is that no one should expect to improve their skills by always sticking to the same approach or taking the easy way out, right? Hope you understand what I meant, let's be empathic teaching and helping one to others with proactivity and but from the respect!

  • Default User Avatar

    you realize not all beginners have as much knowledge as you, so technically this is good for a beginner, get out of 7ku difficulty, this is easy mode.

  • Default User Avatar

    The end of the description of this kata says try not to use the if function, so this solution should not be voted for best practices!

  • Custom User Avatar

    If A -> B and later that B-> T so what will be if we have some B's in our dna ?
    These B's will be replace too so it's not good option in my opinion.

  • Custom User Avatar

    looks very nice but that's 6 runs through the string...

  • Custom User Avatar

    Resolving unhelpful issues

  • Default User Avatar

    as for me one of the best solution!!!

  • Custom User Avatar

    This solution is too slow anyway (if we are talking about performance) to bother about such minor optimization at all.

  • Custom User Avatar

    random test is messed up

  • Default User Avatar

    not really, i have almost similar benchmarks

  • Custom User Avatar

    thanks bro, your comment helped .
    even though i pass the test it failes when submitting @_@

  • Custom User Avatar

    There is a 10s limit on java katas to test for performance.
    Since calculating factorial is not particularly time consuming, I guess your code contains infinite recursion or an infinite loop.

  • Custom User Avatar

    Guys any idea about this kind of error

    • Test passed *
    •               * 
      
    • process terminated*
      took more the 10000

  • Custom User Avatar

    unKnown test Failer , seriously i can't find mistake in my code which make me question the test

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...