Search:

Type: Posts; User: Melodia

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    1,477

    Re: Grid algorithm not working properly

    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++){...
  2. Replies
    4
    Views
    1,477

    Re: Grid algorithm not working properly

    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...
  3. Replies
    4
    Views
    1,477

    Grid algorithm not working properly

    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...
Results 1 to 3 of 3