Search:

Type: Posts; User: GregBrannon

Search: Search took 0.11 seconds.

  1. Replies
    12
    Views
    1,410

    Re: arraylist keeps reseting initial value?

    Queues. That's interesting. Here's the important part of my nested for loop solution:
    // find all unique ending values and populate an array that contains the
    // frequency of occurrence of each...
  2. Replies
    12
    Views
    1,410

    Re: arraylist keeps reseting initial value?

    Any progress?

    Staring at it a bit longer, I see the possible endings and their frequency can be diagrammed with a pyramid, like this:


    Frequency of each ending
    Steps ...
  3. Replies
    12
    Views
    1,410

    Re: arraylist keeps reseting initial value?

    It's interesting you already know that there are 8 possible endings for 3 steps. I assume the 8 endings are not unique endings but there are unique paths to get to those 8 endings.

    So think of...
  4. Replies
    12
    Views
    1,410

    Re: arraylist keeps reseting initial value?

    If the new 2D array still contains the test array as its first row, then yes, the values will still be the same.

    Can you describe what you're trying to do? Maybe there's an easier or better way I...
  5. Replies
    12
    Views
    1,410

    Re: arraylist keeps reseting initial value?

    Your code is very confusing and hard to follow, some comments would be helpful, but I think you'll find that the value of steps.get(0)[0] is always the same as test[0]. So the value you're asking...
  6. Replies
    12
    Views
    1,410

    Re: arraylist keeps reseting initial value?

    Can you give an example of what you mean by "changing its first value?" Can you show a sample output or what you're seeing in the code or output that is causing you to say that the value is...
  7. Replies
    12
    Views
    1,410

    Re: arraylist keeps reseting initial value?

    Welcome to the forum.

    Please read this topic to learn how to post code in code or highlight tags and other useful info for newcomers.
Results 1 to 7 of 7