Ad
  • Custom User Avatar

    TTcandy, thanks for compliment. I think I have basic knowledge of JS, nothing fancy. But I saw you solved even 1kyu task. I think I never did even 2kyu one. I just always try to think the tasks over more deeply first, to really understand them, with common sense or with simple mathematics, logics. Then I choose one solution from mixing and matching my basic JS knowledge. Usually I find a solution that works, even if it is basic. I also like to see what I do, to read my own code as if I was reading an English sentence. I don't solve kyu 1 or 2 because those tasks are so complicated (let alone solving them) that for me they seem too far from common sense. By the way, those few months learning that I mentioned is all my programming learning, I started with JS and learned only that for that few months, I don't even know any other programming language.

  • Custom User Avatar

    HAhhhh,you are so funny.you just learned a few months then you could do it, it was amazing.But like me, i have learnt js for 3 years, i am still poor ability.

  • Custom User Avatar

    It is possible... It seems that you are right...Telling the truth, I have done this about a year ago. I have learned JS for a few months and have done my kyu level in about a months time, then I have stopped learning and started forgetting. Now this code seems to me like chinese. It is definitely my solution, but it feels like as if it wasn't. I don't really see through now what was going on here. Now I don't even understand the Kata. I will learn again and check it again sometimes.

  • Custom User Avatar

    "result[result.length-1]" is the same as "result[i]"