본문 바로가기

ror_coding

검색하기
ror_coding
프로필사진 ro_rdil_31

  • Home (160)
    • Data Analysis (13)
      • Growth Hacking (7)
      • Tableau (6)
    • Coding Test (140)
      • Python (86)
      • SQL (54)
    • Certificate (5)
      • 빅데이터 분석 기사 (0)
      • SQLD (3)
      • ADsP (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • RoR's Github
«   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
Tags
  • tableau
  • 코테
  • 완전탐색
  • Level2
  • 코딩테스트
  • Queue
  • python
  • AARRR
  • coding
  • 조합
  • lambda
  • counter
  • Growth hacking
  • hackerrank
  • coding test
  • Stack
  • level4
  • mysql
  • sql
  • LeetCode
  • 프로그래머스
  • import re
  • cte
  • lv4
  • time complexity
  • programmers
  • itertools
  • 파이썬
  • 코딩
  • join
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록154540 (1)

ror_coding

[Programmers] 무인도 여행 - 154540

BFS 문제..!!! BFS 지금 3번째 틀리는 건데.. 조만간 복습으로 다시 풀어야겠다. Question 지도를 나타내는 문자열 배열 maps가 매개변수로 주어질 때, 각 섬에서 최대 며칠씩 머무를 수 있는지 배열에 오름차순으로 담아 return 하는 solution 함수를 완성해주세요. 만약 지낼 수 있는 무인도가 없다면 -1을 배열에 담아 return 해주세요. Code from collections import dequedef solution(maps): answer = [] directions = [(-1,0),(1,0),(0,-1),(0,1)] rows, cols = len(maps), len(maps[0]) grid = [list(row) for row in maps]..

Coding Test/Python 2024. 12. 30. 20:47
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바