Skip to content

Conversation

@Mukul585
Copy link

No description provided.

@super30admin
Copy link
Owner

  • The student submitted a solution for a completely different problem (K-diff pairs in an array) instead of Pascal's Triangle. This indicates a possible misunderstanding of the assignment or a mix-up in files.
  • The code quality for the K-diff pairs problem is good, with proper use of sorting and two-pointer technique. The logic for skipping duplicates is correctly implemented.
  • For the actual Pascal's Triangle problem, the student needs to:
    1. Understand the structure of Pascal's Triangle (each number is the sum of the two directly above it).
    2. Implement a solution that builds each row based on the previous row.
    3. Handle edge cases like numRows = 1 or 0 appropriately.
  • The student should double-check they're working on the correct problem before submitting solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants