Complete Competitive-Coding-3#1172
Conversation
|
Your solution for Pascal's Triangle is well-written and efficient. It correctly generates the triangle by building each row based on the previous one, which is the standard approach. The code is clear and easy to understand. However, note that your file contains code for two different problems: KDiffPairs and Pascal's Triangle. This is not a good practice because it can cause confusion and might lead to errors when running the code. Each problem should be in its own separate file or class. For the purpose of this evaluation, I considered only the Pascal's Triangle solution. One minor improvement: instead of using Also, in the inner loop, you have variables named Overall, great job on the Pascal's Triangle solution! Just make sure to keep unrelated code in separate files. |
No description provided.