본문 바로가기

sy1214ei 님의 블로그

검색하기
sy1214ei 님의 블로그
프로필사진 sy1214ei

  • 분류 전체보기 (65)
    • [Coding] (47)
      • 오늘의 삽질 (1)
      • [Leet Code] (0)
      • [BOJ] (0)
      • [Programmers] (26)
    • [Paper Review] (6)
    • [Concept] (2)
    • Subject (9)
      • [DS] Data Structure (2)
      • [ML] Machine Learning (0)
      • [RL] Reinforcement Learning (0)
      • [NLP] Natural Language Proc.. (0)
      • [DB] Data Base (4)
      • [CA] Computer Algorithm (1)
      • [DL] Deep Learning (1)
      • [MLOps] ML Operations (1)
    • [Study] (1)
      • [Server] Server (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/05   »
일 월 화 수 목 금 토
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 29 30
31
Tags
  • 개발자
  • Data_Structure
  • SQL
  • 코딩테스트
  • sort
  • 대학생
  • 컴퓨터사이언스
  • 코테
  • 데이터
  • CS
  • meshgraphnet
  • DS
  • coding
  • Database
  • 티스토리챌린지
  • mysql
  • Leet Code
  • db
  • adaptive remeshing
  • GNN
  • 오블완
  • 자료구조
  • 데이터베이스
  • 데베
  • LeetCode
  • 컴퓨터공학
  • code
  • Mesh
  • Python
  • CNN
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록leetcode58 (1)

sy1214ei 님의 블로그

[Leet Code] 58. Length of Last Word - Python

Level : EasyTopics : String https://leetcode.com/problems/length-of-last-word/description/Codeclass Solution: def lengthOfLastWord(self, s: str) -> int: # 1. str의 뒤 공백을 없애줍니다 # 2. str을 뒤에서 부터 돌면서 ' '이 나온다면 break # 3. return cnt s = list(s) for i in range(len(s)-1, -1, -1): if s[i] == ' ': s.pop(i) else: ..

[Coding] 2024. 11. 26. 16:52
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바