For those who are losing their mind on this. It does not requires particular coding skills. Once you get the math (that is not exaclty trivial...) solving it is just few lines of code. If you do not enjoy learning new math you will probably not enjoy this.
Have fun my friends!
Fun kata! But I have a question why in C# all kata seems to uses jagged arrays instead of multidimensional? (int[][] this instead of int[,]). I am genuinely curious because it seems to me more appropriate a multidimensional array in this case and in many others that I found... am I wrong?
For those who are losing their mind on this. It does not requires particular coding skills. Once you get the math (that is not exaclty trivial...) solving it is just few lines of code. If you do not enjoy learning new math you will probably not enjoy this.
Have fun my friends!
suggestion closed
That is really silly then. This should be on mathwars.com, not codewars.com.
This comment is hidden because it contains spoiler information about the solution
Fun kata! But I have a question why in C# all kata seems to uses jagged arrays instead of multidimensional? (int[][] this instead of int[,]). I am genuinely curious because it seems to me more appropriate a multidimensional array in this case and in many others that I found... am I wrong?
Same here. But then I realized this brilliant solution was probably googled. I bet this is one of these coding problems interviewers are fond of. ;-)
I completed the kata my way... super happy.
I saw the top best practice... super depressed.
C'mon using magic is not fair...