blackbearwow

  • 홈
  • 태그
  • 방명록

programmers 1

프로그래머스 level2 문제들(정답률 50%~60%)

- 게임 맵 최단거리 처음에는 dfs로 풀어 시간초과가 되었지만, bfs로 푸니 빠르게 풀 수 있었다. def solution(maps): from collections import deque answer = -1 height = len(maps) width = len(maps[0]) queue = deque() queue.append((0, 0)) udlr = [[0,1],[0,-1],[-1,0],[1,0]] while len(queue) != 0: (y, x) = queue.popleft() # 상하좌우 for idx in range(4): nx = x + udlr[idx][1] ny = y + udlr[idx][0] if ny >= 0 and nx>=0 and ny 0: answer[stack.po..

코딩 연습/프로그래머스 2024.02.05
이전
1
다음
더보기
프로필사진

blackbearwow

  • 분류 전체보기 (229)
    • AHK(오토핫키) (9)
    • c, cpp (6)
    • Java (26)
      • jdbc (7)
    • python (10)
      • Flask (4)
    • Node.js (24)
    • 코딩 연습 (14)
      • 프로그래머스 (10)
      • 백준 (4)
    • web (19)
      • css (2)
      • javascript (10)
    • 컴퓨터 네트워크 (6)
    • 자료구조 (14)
    • 운영체제 (15)
      • Linux (13)
      • Windows (1)
    • 데이터베이스 (Database) (3)
    • 컴퓨터 그래픽스 (3)
    • 시스템 분석 설계 (2)
    • 소켓프로그래밍 (9)
    • 이것저것 (9)
    • 게임 (4)
    • Unity (6)
      • VRChat (6)
    • web hacking (8)
      • dreamhack(드림핵) (8)
    • system hacking (30)
      • dreamhack(드림핵) (23)
      • 개념, 준비물 (7)
    • reversing (reverse engineer.. (5)
      • dreamhack (드림핵) (5)

Tag

프로그래머스, c언어, level1, lockstep, VRChat Creator Companion, 자료구조, TCP header format, Unity, datastructures, nodejs, VRCHAT, struct bit field, SQL, heap tree, JavaScript, socket.io, MySQL, Nintendo, vcc, Set,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • 깃허브 페이지
  • dreamhack 페이지

티스토리툴바