로딩
요청 처리 중입니다...

JAVA_LeetCode 3407_Substring Matching Pattern

 JAVA_LeetCode 3407_Substring Matching Pattern

JAVA_LeetCode 3407_Substring Matching Pattern 풀이 class Solution { public boolean hasMatch(String s, String p) { // p의 *을 기준으로 문자 체크하기 int idx = p.indexOf("*"); if(s.indexOf(p.substring(0, idx)) != -1 && s.indexOf(p.substring(idx + 1), s.indexOf(p.substring(0, idx)) + idx) !

= -1) return true; return false; } } * 출처 https://leetcode.com/problems/substring-matching-pattern...

JAVA_LeetCode 3407_Substring Matching Pattern에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.