Skip to content

Optimize substring search using C++ built-in find() method#263

Merged
abhisek247767 merged 1 commit intoabhisek247767:mainfrom
kavvyaaaa:change
Oct 31, 2025
Merged

Optimize substring search using C++ built-in find() method#263
abhisek247767 merged 1 commit intoabhisek247767:mainfrom
kavvyaaaa:change

Conversation

@kavvyaaaa
Copy link
Contributor

@kavvyaaaa kavvyaaaa commented Oct 29, 2025

Simplified the substring search by using C++’s built-in std::string::find() instead of manual loops. This makes the code cleaner, more efficient, and automatically handles edge cases like empty or missing substrings.

@github-actions
Copy link

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that you star the repository and follow me in github,otherwise PR will not merged. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@kavvyaaaa kavvyaaaa closed this Oct 29, 2025
@kavvyaaaa kavvyaaaa changed the title Added C++ implementation to find the first occurrence of a substring in a string Optimize substring search using C++ built-in find() method Oct 29, 2025
@kavvyaaaa kavvyaaaa reopened this Oct 29, 2025
@abhisek247767 abhisek247767 merged commit 9417026 into abhisek247767:main Oct 31, 2025
2 checks passed
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