Skip to content

Conversation

simran-kaur5
Copy link

Improved the twoSum solution in the Solution class for better readability and efficiency.
Removed input/output code for compatibility with LeetCode's online judge.

@Hrudhay-H
Copy link
Owner

Hey Simran, I'm happy to see you're interested and contributing to the repository.
This repo was made to mark my DSA journey, and I will surely update the most optimised solutions in the coming days with all complexities as well.

The solution you gave is indeed a better version than the one I had written.
I will alter the repository and make it a better Repository that can be used to revise any DSA concepts.

You can connect with me on LinkedIn as well.

Thank you for your interest!

@simran-kaur5
Copy link
Author

Replaced manual bubble sort with built-in std::sort() for better performance and code clarity in the Height Checker solution (Problem 1051).

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