Challenge 19 code question


#1

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.

REMOVED


#2

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


#3

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