인생은 효율성

  • 홈
  • 태그
  • 방명록

코테준비 1

[Python] 리트코드 1470 : Shuffle the Array (Array)

https://leetcode.com/problems/shuffle-the-array/ Shuffle the Array - 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 주어진 nums배열에서 0부터 n씩 건너뛰면서 숫자를 골라 새로운 배열을 만들어내면 된다. nums=[0,1,2,3,4,5], n=3이라면 nums[0]인 0이 새 배열의 첫 번째가 되고 3칸 뒤인 3이 두 번째가 된다. 3의 3칸 뒤는 배열을 한 바퀴 돌아서 0이 되야하는데 0은 이미 새 배열..

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

최근댓글

최근글과 인기글

  • 최근글
  • 인기글

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바