Ad
  • Custom User Avatar

    Finally I got it works, just make it use a small number of loop.

  • Custom User Avatar

    Same here.

  • Custom User Avatar

    I think there is any bug with the test case on PHP, I make a debug and everything is fine, but still can't passed the test case.

    Here the error messages:

    Log:
    Testing for width=15
    ✔Test passed
    Testing for width=20

    Line length is not equal
    Failed asserting that 20 matches expected 15.

    ===
    Have anyone solve this problem with PHP?

  • Custom User Avatar

    This is the best Kata until now, need many hours to found the solution. But, when using the same algorithm for both PHP & JavaScript, only JavaScript can passed it while PHP get timeout.