Skip to content

completed competitive coding 3#1163

Open
abhayb94 wants to merge 1 commit intosuper30admin:masterfrom
abhayb94:master
Open

completed competitive coding 3#1163
abhayb94 wants to merge 1 commit intosuper30admin:masterfrom
abhayb94:master

Conversation

@abhayb94
Copy link

No description provided.

@super30admin
Copy link
Owner

  • Problem1.java: The solution is excellent. The approach is clear, and the implementation is correct. No improvements are needed.
  • Problem2.java: The solution is mostly correct, but there is a minor issue with the initial check for k < 0. Instead of returning -1, it should return 0, as no pairs can exist with a negative k. Additionally, the use of a HashSet of Lists is correct but could be optimized further by using a HashSet of Strings or a custom Pair class to reduce overhead.

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