본문 바로가기

kohigowild

검색하기
kohigowild
프로필사진 kohi ☕

  • 분류 전체보기 (83)
    • Project (5)
    • mitmitwiki (10)
    • JavaScript (14)
      • TypeScript (2)
    • React (12)
      • NextJS (3)
    • HTML | CSS (2)
    • Algorithm (40)
Guestbook
Recent Posts
Recent Comments
Link
  • GitHub
  • Notion
«   2025/07   »
일 월 화 수 목 금 토
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
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Shift 2D Grid (1)

kohigowild

221114 :: [leetcode] Shift 2D Grid, Add Digits, Append K Integers With Minimal Sum

Shift 2D Grid Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one shift operation: Element at grid[i][j] moves to grid[i][j + 1]. Element at grid[i][n - 1] moves to grid[i + 1][0]. Element at grid[m - 1][n - 1] moves to grid[0][0]. Return the 2D grid after applying shift operation k times. Example 1: Input: grid = [[1,2,3],[4,5,6],[7,8,9]], k = 1 Output: [[..

Algorithm 2022. 11. 14. 15:00
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바