일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 릿코드
- LeetCode
- Azure
- 자연어처리
- Python
- 파이썬기초
- C#
- codeup
- gcp
- two-pointer
- GenAI
- 파이썬기초100제
- Microsoft
- 파이썬알고리즘
- 코드업
- 클라우드
- 구글퀵랩
- 데이터사이언스
- 알고리즘
- nlp
- 코드업파이썬
- Blazor
- 빅데이터
- 투포인터
- 생성형AI
- 머신러닝
- Python3
- GenerativeAI
- 파이썬
- 리트코드
Archives
- Today
- Total
목록pythonalgoritm (1)
Tech for good

class Solution: def isPrefixOfWord(self, sentence: str, searchWord: str) -> int: words = sentence.split() for i, word in enumerate(words): if word.startwith(searchword): return i+1 return -1 Explanation:Split the Sentence: The input sentence is split into a list of words using .split(), which automatically handles single spaces.Iterate Over Words..
IT/Computer Science
2025. 2. 17. 23:40