Sep-13-2019, 03:56 AM
This is a problem you need to work out on paper. You need to visualize what the loops are doing to solve it. As you analyze the pyramid, think of what is happening on each loop pass. Your outer loops count from 1 to the depth and the inter loop is a counter.
If I say anymore I'd give it away.
Draw it out on paper and if you figure out the solution you will have really learned something. It is a very important skill to figure out an algorithm to solve a problem. Be patient with it.
Work at it!
John
If I say anymore I'd give it away.
Draw it out on paper and if you figure out the solution you will have really learned something. It is a very important skill to figure out an algorithm to solve a problem. Be patient with it.
Work at it!
John