Skip to content

Conversation

@restacksyj
Copy link

No description provided.

@super30admin
Copy link
Owner

  • Strengths:

    • Both solutions are correct and handle edge cases well.
    • Code is clean, readable, and well-commented.
    • The logic is straightforward and easy to follow.
  • Areas for Improvement:

    • For Exercise2.cpp, the time complexity should be corrected to O(n log n) due to the sorting step.
    • Avoid using #include <bits/stdc++.h> in favor of including only necessary headers.
    • Consider adding more edge case checks, such as handling empty input or negative values of k in Exercise2.cpp.

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