728x90

str 3

[leetCode] 1967. Number of Strings That Appear as Substrings in Word (Python)

▼ 문제 바로가기 (링크) ▼ https://leetcode.com/problems/number-of-strings-that-appear-as-substrings-in-word/ Number of Strings That Appear as Substrings in Word - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com return the number of strings in patterns that exist as a substring in word. A su..

[leetCode] 1816. Truncate Sentence (Python)

▼ 문제 바로가기 (링크) ▼ https://leetcode.com/problems/truncate-sentence/ Truncate Sentence - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문자열 s 와 정수 k가 주어진다. 문자열을 공백 기준으로 나누었을 때 0번째 원소부터 k-1 번째까지를 반환한다. 이 때 자료형은 문자열이며, 원본과 같이 원소 사이의 공백을 포함한다. class Solution: def truncateSentence(self, ..

[leetCode] 1108. Defanging an IP Address (Python)

▼ 문제 바로가기 (링크) ▼ https://leetcode.com/problems/defanging-an-ip-address/ Defanging an IP Address - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com *defang : 1. make (something) harmless or ineffectual 2. remove the fangs from (an animal, especially a snake). class Solution: def defa..

728x90