Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I have a homework assignment. Part of it is to generate pascals triangle. But here's the problem. The normal solution is recursive. That was an earlier assignment. We have to eliminate the recursion by using a stack object that we created in a previous part of the homework. That would be no problem, I understand that. The problem is, I added the class a bit late, and missed the original homework. So now I don't have the recursive code for it. Because of that, I cannot see how the code works, I don't understand how to make the triangle because the explanation was in the previous homework. I'm sure that many many schools give pascals triangle as homework. some of you should be familiar with it(if not tired of seeing it). Can you give me the recursive method? I can handle it from there.
Thanks in advance to anyone who can help me!!
0 · ·