Could it be that the Shell tests are broken??? It is difficult to debug in Shell but from my side it really looks that in several cases the test expects -1 when in fact there is a valid input.
Nice kata! Would be cool if author made a 4kyu or 3kyu version where every floor is 2D. Another cool option would be to add several stairs at each floor - finding a shortest route would be a quite challenging 3kyu kata.
Thanks! Our solutions are basically the same only yours is executed more professionally. I am very new to C++ so my knowledge of string methods and string initalization is lame. Also, I need to adopt object oriented approach in my C++ code. Just like how it is done in your solution.
you can just call constructor recursively for one-liner
This comment is hidden because it contains spoiler information about the solution
Could it be that the Shell tests are broken??? It is difficult to debug in Shell but from my side it really looks that in several cases the test expects -1 when in fact there is a valid input.
I think you missed a couple of braces
Nice kata! Would be cool if author made a 4kyu or 3kyu version where every floor is 2D. Another cool option would be to add several stairs at each floor - finding a shortest route would be a quite challenging 3kyu kata.
This comment is hidden because it contains spoiler information about the solution
Voted clever because I have no idea whats going on. Some comments or explanation would be nice though.
Thank you very much! I will definately look into it. This might be usefull in some other circumstances.
Thanks! Our solutions are basically the same only yours is executed more professionally. I am very new to C++ so my knowledge of string methods and string initalization is lame. Also, I need to adopt object oriented approach in my C++ code. Just like how it is done in your solution.
Great kata! Took me a couple of hours to get it done.
Does this mutate the input? I'm new to coding so pls no bully.
what an acctual fcuk?!
Very nice. Thanks!
Thanks!
da fuq?
Loading more items...