Skip to content

Commit

Permalink
이슈 #336에서 솔루션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 19, 2024
1 parent 20b997e commit fe2745f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Programmers/문자열안에_문자열.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <string>
#include <vector>

using namespace std;

int solution(string str1, string str2) {
return str1.find(str2) == string::npos ? 2 : 1;
}

0 comments on commit fe2745f

Please sign in to comment.