Skip to content

Solution for 28th problem - #562

Open
ViCppDev wants to merge 4 commits into
codedecks-in:masterfrom
ViCppDev:solution_for_28th_task
Open

ViCppDev wants to merge 4 commits into
codedecks-in:masterfrom
ViCppDev:solution_for_28th_task

Conversation

@ViCppDev

Copy link
Copy Markdown
Contributor

this PR adds a LeetCode problem solution with an implementation of the algorithm for the 28th LeetCode problem

Problem 28 : Find the First Occurrence

info about the problem:

difficulty : easy
approach : a built-in std::string find function
feature : one of the fastest way to find the substring in the substring, and available for everyone with available std::string class
time complexity : O(1)
space complexity : O(2)

dependencies

no external dependencies required. everything used is in C++ STL

checklist

[x] added problem and solution under correct topic
[x] specified time and space complexity
[x] added test cases
[x] tested locally and passes all test cases

@welcome

welcome Bot commented Oct 14, 2026

Copy link
Copy Markdown

I can tell this is your first pull request! Thank you I'm so honored. 🎉🎉🎉 I'll take a look at it ASAP!

@ViCppDev

Copy link
Copy Markdown
Contributor Author

what even happened with .github/scripts/validate_pr.py
the changes are the same as last time...

This branch has not been deployed

No deployments
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.

1 participant