Challenge 19 code question


This is my code for today, it is producing the correct information needed, and can vary depending on grid size, however the challenge is saying it did not produce the correct result.
Can someone let me know why that may be? ( if you just plug this in i’ve left out my declaring the variables.



You want to return percentages as an array, not a string.


Thanks got it done, removed my code as not to spoil anything for anyone.