So, this problem was finally solved by replacing this:
//For each grid entry in row r, column i
for(int gridEntry: G[r]){
//i ranging from 1 to c-1 inclusive
for(int i=1;i<c;i++){...
Type: Posts; User: Melodia
So, this problem was finally solved by replacing this:
//For each grid entry in row r, column i
for(int gridEntry: G[r]){
//i ranging from 1 to c-1 inclusive
for(int i=1;i<c;i++){...
Hmm. I see what you mean. I'm not even using the number n for anything there, despite the fact it's explicitly stated. Nevertheless, I can't seem to interpret that part correctly. Of all the...
I'm trying to translate from pseudocode from a textbook into java, but it's not working, so I'm clearly doing something wrong. Before I show you my code, I think it's best I give you the text, so...