Ad
  • Default User Avatar

    Converted it to Javascript and compleated it.

  • Default User Avatar

    Got same as the two otheres here.

    solution: virtual void POSTFIX::TESTS(): Assertion `to_postfix(infix) == postfix' failed.

    If the error is in the solution, the faulth need to be better explained so I know where to start fixing this.

  • Default User Avatar

    I am not sure if it is just me, but the PHP template was missing the fact that the key and alfabeth came through a constructor that was not mention at all. When I got that in place it all worked a lot better.

    Should be part of the start template.

  • Default User Avatar

    Not sure what language you did it in. In C++ this tests gives the expected result ( [2,1,3,1,2,2,2,2,1] => {pos = [2,4], peaks = [3,2]} )

  • Default User Avatar

    Thanks for reply.

  • Custom User Avatar

    Approved.
    Actually not every solid katas got approved because

    • Maybe not enough votes (currently 3 ~ 5 rank + votes are enough for a kata to be consider as approvable by CW)
    • Maybe there are unsolved issues
    • The one who are going to approve it have not finished it yet
    • CW just not happy with it

    And you can approve katas when you are at higher rank

  • Default User Avatar

    Why is this still in Beta?
    It should be released i.m.o.
    (Yes I am new, and there might be some voting detail, or something I don't know about, but this seems solid enought)

  • Default User Avatar

    In PHP this was stupid simple (but only becouse you can change the object you test on)

  • Default User Avatar

    The test scenarios let me complete with my C++ solution, but whould have failed at this one: "....\n.W..\n.W..\n.W.."
    ....
    .W..
    .W..
    .W..
    Tecnically that is a solution that should return true. Mine did not, but still got approved.

    My current version states that if I get back to start, I failed the Maze. Howver, in this case I should have gone out the other way again.