본문 바로가기 메뉴 바로가기

이것저것 기록 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

이것저것 기록 블로그

검색하기 폼
  • 분류 전체보기 (206)
    • 이것저것 자료 (72)
      • Python (24)
      • Linux (13)
      • Vim (2)
      • Docker (12)
      • C++ (3)
      • Git (1)
      • Shell script (4)
      • 그 외 (13)
    • 공부 (4)
      • Paper (1)
      • Algorithm (0)
      • Architecture&OS (0)
      • 용어 및 개념 (3)
      • 네트워크 (0)
      • 데이터베이스 (0)
      • 자료구조 (0)
      • Spring boot (0)
      • 디자인패턴 (0)
      • Kotlin (0)
    • 일상 (0)
    • 맞춤법 (0)
    • 코딩테스트 대비 (127)
  • 방명록

메뉴리뉴얼 (1)
[프로그래머스] 메뉴 리뉴얼

from itertools import combinations def solution(orders, course): answer = [] for i in range(len(orders)): orders[i] = sorted(orders[i]) for i in course: hash_map = {} for j in orders: for k in list(combinations(j,i)): if k in hash_map.keys(): hash_map[k] += 1 else: hash_map[k] = 1 max_ = 0 for key, value in hash_map.items(): if len(key) == i: max_ = max(value, max_) for key, value in hash_map.it..

코딩테스트 대비 2022. 2. 8. 11:12
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 설치하기
  • torchscript
  • 설치
  • 백트래킹
  • dfs
  • PIP
  • torch
  • docker
  • 카카오
  • LGSVL
  • 파이썬
  • BFS
  • 코딩테스트
  • shellscript
  • error
  • 다익스트라
  • notfound
  • Python
  • 동적프로그래밍
  • n과m
  • numpy
  • 최소신장트리
  • 백준
  • pytorch
  • CUDA
  • tensorflow
  • 이것이코딩테스트다
  • version
  • 프로그래머스
  • matplotlib
more
«   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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바