Skip to content

Conversation

@Tanmay-Nalawade
Copy link

No description provided.

@super30admin
Copy link
Owner

  • Pascal's Triangle: Excellent job! Your solution is correct, efficient, and well-commented. The time and space complexity analysis is accurate.
  • K-diff Pairs: Good job providing multiple solutions with varying efficiencies. The first solution is correct but not optimal, so it's great that you included more efficient alternatives. For the third solution, consider adding a comment explaining why you handle k=0 separately, as it might not be immediately obvious to readers. Also, in the second solution, you have a bug in the duplicate skipping logic (you're checking nums[left] instead of sort[left]). Fixing this would make the solution fully correct.

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