인생은 효율성

  • 홈
  • 태그
  • 방명록

leetcode 48. Rotate Image 1

[LeetCode] matrix 90도 회전 알고리즘: 48. Rotate Image

https://leetcode.com/problems/rotate-image/submissions/ Rotate Image - 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 각 row를 거꾸로 정렬한 뒤 matrix를 왼쪽 위에서 오른쪽 아래 대각선으로 잘랐다고 생각하고 그 대각선을 기준으로 각 칸을 swap 해준다. class Solution: def rotate(self, matrix: List[List[int]]) -> None: matrix.reverse..

알고리즘 2022.04.04
이전
1
다음
더보기
250x250
프로필사진
  • 분류 전체보기 (214)
    • 짧은만화 (15)
    • 토이프로젝트 (20)
    • JavaScript (26)
    • React (17)
    • 알고리즘 (91)
    • WEB (13)
    • 개발환경 (6)
    • 프로그래밍 (8)
    • 네트워크 (7)
    • MSSQL (6)
    • 기타 (2)

최근댓글

최근글과 인기글

  • 최근글
  • 인기글

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바