Ad
  • Custom User Avatar

    Just solved it.

    The formula might be confused a little bit.

  • Custom User Avatar

    Honestly, i always take more time to solve g964 Kata because of deciphering the description.

  • Custom User Avatar

    Just realize i misunderstand the phrase the first in order of appearance

    Example case: BAABB

    If you think B is first in order of appearance, it's wrong.

    A is correct answer. It can paraphrase 'the first in order of appearance which have highest length`

  • Custom User Avatar

    Thank, it's helpful for me at least.

    I am not good in math, i use wrong formula at first:

    First: sin (x^3) - Second: (sin(x))^3

    The first formula is wrong, when i change to second, it work like a charm and pass all test.

  • Custom User Avatar

    I have to agree with your comment. His explanation is just with one line but it exress better all description in the task.

    Not all smart guy can be a teacher with same reason ^^.

  • Custom User Avatar

    Sorry, i still don't get it. Why rotating the dial clockwise (instruction step#2) from zero to 30 will take 90 degrees;

    I am not sure what is the way to calculate the degree.

    I just think the formula should be:

    With clockwise start from 0:

    0 -> 10 : 90 degree

    0 -> 20: 180 degree

    0 -> 30: 270 degree

    With counter-clockwise start from 0:

    0 -> 30: 90 degree

    0 -> 20: 180 degree

    0 -> 10: 270 degree

    Can any one explain what's wrong with my formula?

    ------UPDATE------

    After researching for a while, i realize my assumption is wrong.

    The formula should be opposited base on the picture.

    https://www.art-of-lockpicking.com/wp-content/uploads/Open-a-Locker-Lock-Step-1.webp

    It help me visual the problem easily more than the image in task.

  • Custom User Avatar

    yeah, totally agree, btw i think it deserve to 6kyu kata.

  • Custom User Avatar

    This kata should be 3 kyu. Quite hard more than others 4 kyu.