you fr just hate typing
This comment is hidden because it contains spoiler information about the solution
this is exactly like mine <3
I tried this one before and it sent me straight to hell
would have never thought of that -- very cool!
For n = 0 code will return 8, but it should be 4.
n = 0
Also as far as I see you do not need to keep all values, you need only previous two.
The question specifically says "two or more" bools, so the test cases should be updated so that a solution like this does not pass.
cool :)
PS. These are katas, not production code, and I will one-line every single one of them I can, no matter how unreadable it gets.
Yes, it's fun. I see your problem solving and understand that LINQ is a powerful tool that I need to learn. Urgent.)
Loading collection data...
you fr just hate typing
This comment is hidden because it contains spoiler information about the solution
this is exactly like mine <3
I tried this one before and it sent me straight to hell
would have never thought of that -- very cool!
For
n = 0
code will return 8, but it should be 4.Also as far as I see you do not need to keep all values, you need only previous two.
The question specifically says "two or more" bools, so the test cases should be updated so that a solution like this does not pass.
cool :)
Yes, it's fun.
I see your problem solving and understand that LINQ is a powerful tool that I need to learn. Urgent.)