본문 바로가기 메뉴 바로가기

sumeme

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

sumeme

검색하기 폼
  • 🖥️ (36)
    • Algorithm (14)
      • theory (0)
      • problems (13)
    • Network (12)
    • Book (1)
      • DDIA (1)
    • STUDY (3)
    • CS (1)
    • ETC (2)
    • Java,Spring 맛보기 (3)
  • 방명록

leetcode 54. spiral matrix (1)
Leetcode 54. Spiral Matrix

링크는 https://leetcode.com/problems/spiral-matrix/description/ # 문제이해정수로 된 숫자 배열이 주어지면, 우 -> 하 -> 좌 -> 상 방향으로 돌면서, 숫자 순서를 아웃풋 하는 방식. # 생각해본 방법모든 숫자를 하나하나 완전 탐색해야 하지 않을까 생각요론식의 수도 코드를 생각했다.checked = [[]] direction [right, down, left, right] # right(0,1)cnt = 0direction[cnt % len(direction)]x, y = 0, 0 # startwhile cnt: dx, dy = direction[cnt % len(direction)] nx += dx ny += dy if 0   # ..

Algorithm/problems 2024. 7. 3. 17:34
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • leetcode 295. find median from data stream
  • 프로그래머스
  • 네트워크성능평가
  • 네트워크처리율
  • 클래스풀주소체계
  • 네트워크분류
  • 네트워크패킷로스
  • leetcode
  • Algorithm
  • 클래스리스주소체계
  • increasing-triplet-subsequence
  • 롤링업데이트
  • 네트워크정의
  • 인터넷프로토콜이란
  • leetcode 295
  • leetcode 17. letter combinations of a phone number
  • 이더넷이란
  • 네트워크허브
  • 이더넷뜻
  • 알고리즘
  • leetcode 54. spiral matrix
  • 블루/그린
  • 54. spiral matrix
  • arp응답
  • leetcode334
  • 광역망
  • letter case permutation
  • 이더넷프로토콜
  • 테라폼구축
  • 122. best time to buy and sell stock ii
more
«   2025/08   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바