느낌표 공장

  • 태그
  • 방명록

most_common 1

[Python] 메뉴 리뉴얼

from itertools import combinations from collections import Counter def solution(orders, course): answer = [] for c in course : com = [] for order in orders : com.extend(combinations(sorted(order), c)) com = Counter(com).most_common() com = list(map(lambda x : x[0], filter(lambda x : x[1]==com[0][1] and x[1]!= 1, com))) if com : answer.extend(com) return sorted(map(lambda x: ''.join(x),answer)) 풀..

Algorithm/Programmers 2021.06.02
1
더보기
프로필사진

  • 전체보기
    • CS
    • Language
      • Python
      • Java
      • JavaScript
      • MySQL
    • Web
      • Spring
    • Data Science
      • Machine Learning
      • 설치
    • Algorithm
      • 개념
      • Programmers
      • Baekjoon
      • SW Expert Academy
    • Mac
    • 기타
      • IntelliJ
      • 영감

Tag

파이썬, Spring, binary, binary search, Queue, dp, BOJ, BFS, swea, dfs, greedy, programmers, Backtracking, 자바, java, 프로그래머스, Dijkstra, Python, Two Pointer, stack,

최근글과 인기글

  • 최근글
  • 인기글

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • Github

티스토리툴바