기록일지

  • 홈
  • 태그
  • 방명록

Algorithm 2

[Toy] 6 - 10

6. sudoku 일부 칸이 비어있는(0이 입력된) 상태의 스도쿠 보드를 입력받아 완성된 보드를 리턴 (board는 가로 길이와 세로 길이가 모두 9인 2차원 배열이다.) const sudoku = function (board) { const N = board.length; // N = 9 const boxes = [ [0, 0, 0, 1, 1, 1, 2, 2, 2], [0, 0, 0, 1, 1, 1, 2, 2, 2], [0, 0, 0, 1, 1, 1, 2, 2, 2], [3, 3, 3, 4, 4, 4, 5, 5, 5], [3, 3, 3, 4, 4, 4, 5, 5, 5], [3, 3, 3, 4, 4, 4, 5, 5, 5], [6, 6, 6, 7, 7, 7, 8, 8, 8], [6, 6, 6, 7, 7, ..

Algorithm 2021.05.05

[Toy] 1 - 5

1. orderOfPresentation 한 사람이 주어진 round의 가위바위보를 할 때, 가능한 모든 경우의 수를 2차원 배열로 나타내는 함수 구현 (단, 'rock', 'paper', 'scissors' 순의 중요도를 가지는 '가중치 적용 정렬'을 따른다.) const rockPaperScissors = function (rounds) { rounds = rounds || 3; const list = ['rock', 'paper', 'scissors']; const result = []; const callback = function (roundsToGo, playedSoFar) { if (roundsToGo === 0) { result.push(playedSoFar); return; } for (..

Algorithm 2021.05.02
1
더보기
프로필사진

공부 중 👀 / 잘못된 정보는 댓글로 남겨주세요! ᕦ( ᐛ )ᕡ

  • 분류 전체보기 (84)
    • TIL 👩🏻‍💻 (42)
    • 언어 (3)
      • Javascript (2)
      • Typescript (0)
      • Python (1)
    • 인공지능 (0)
      • 딥러닝 (0)
    • Project (37)
      • plantingg (11)
      • jigu-tory (26)
    • Algorithm (2)
    • 기타 (0)

방문자수Total

  • Today :
  • Yesterday :

Tag

OOP, ES6, jigutory, plantingg, async, 알고리즘, CORS, aws, promise, 반복문, await, SR, 스코프 체인, 비동기, 코드스테이츠, node.js, TOY, Callback, CSS, 변수,

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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

Copyright © Kakao Corp. All rights reserved.

티스토리툴바