LeetCode #58

Kiyong Lee·2022년 1월 12일
0

leetcode

목록 보기
13/20

58. length of last world


1. 코드

class Solution:
    def lengthOfLastWord(self, s: str) -> int:
        return len(s.split()[-1])

해설은 굳이;;

profile
ISTJ인 K-개발자

0개의 댓글