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...
Type: Posts; User: GregBrannon
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...
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 ...
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...
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...
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...
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...
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.