Computistics
  • 홈
  • 태그
  • 방명록
  • Github
    • 전체 카테고리 (35)
      • Vision AI (7)
        • Classification (2)
        • Object Detection (4)
        • Segmentation (0)
        • etc. (1)
      • Model Compression (6)
      • Pytorch (8)
        • Tutorials (8)
      • Python (14)
        • OpenCV (6)
        • 공부하며적어놓는기록장 (8)
  • 글작성
  • 방명록
  • 환경설정
  • 메뉴 닫기
Sprial Matrix2 검색 결과
1 개의 검색 결과가 있습니다.
Python/공부하며적어놓는기록장

[LeetCode] 6. Spiral Matrix2

LeetCode 59번 문제는 이전에 풀었던 54번 문제의 반대라고 생각하면 된다. 껍질을 하나씩 바깥쪽부터 채워나가는 아이디어를 통해 문제를 풀어나갔다. class Solution: def generateMatrix(self, n: int) -> List[List[int]]: if not n: return [] res = [[0 for _ in range(n)] for _ in range(n)] top, right, bottom, left = 0, n - 1, n - 1, 0 num = 1 while num

2021. 2. 3. 17:50
  • «
  • 1
  • »

공지사항

전체 카테고리

  • 전체 카테고리 (35)
    • Vision AI (7)
      • Classification (2)
      • Object Detection (4)
      • Segmentation (0)
      • etc. (1)
    • Model Compression (6)
    • Pytorch (8)
      • Tutorials (8)
    • Python (14)
      • OpenCV (6)
      • 공부하며적어놓는기록장 (8)
반응형
  • 최근 글
  • 최근 댓글

최근 글

최근댓글

전체 방문자

오늘
어제
전체

블로그 인기글

Powered by Privatenote/라이프코리아 Copyright © Computistics All rights reserved. TistoryWhaleSkin3.4

티스토리툴바