D36CHOI

  • 홈
  • 태그
  • 프로그래밍
  • 알고리즘

leetcode greedy 2

[leetcode] Two City Scheduling

문제 https://leetcode.com/problems/two-city-scheduling/ Two City Scheduling - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 내 풀이 class Solution: def twoCitySchedCost(self, costs: List[List[int]]) -> int: answer = 0 costs = sorted(costs, key = lambda x : -abs(x[0] - x[1])) n = len(c..

프로그래밍/leetcode 2022.03.25

[leetcode] Smallest String With A Given Numeric Value

문제 https://leetcode.com/problems/smallest-string-with-a-given-numeric-value/ Smallest String With A Given Numeric Value - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 내 풀이 class Solution { public String getSmallestString(int n, int k) { int remain = k - n; char[] array = new cha..

프로그래밍/leetcode 2022.03.22
1
더보기
프로필사진

만족은 하되 안주하지는 않는 사람

  • 분류 전체보기 (168)
    • 프로그래밍 (162)
      • JAVA (20)
      • programmers&bj (78)
      • leetcode (7)
      • 기억노트 (20)
      • backend&devOps (23)
      • frontend (4)
      • ETC (8)
      • Android (2)
    • 인생 (3)

Tag

c++, 파이썬 readline, 백준 C++, C++ 알고리즘, 메모이제이션, C언어, 프로그래머스 C++, 도커 명령어, amazon sns, 자바 다형성, 백준 알고리즘, leetcode, 안드로이드, java stringbuilder, 파이썬 DFS, 알고리즘, 프로그래머스, 파이썬 BFS, 백준 알고리즘 C++, leetcode greedy,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/10   »
일 월 화 수 목 금 토
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 :
Github LinkedIn

Copyright © Kakao Corp. All rights reserved.

티스토리툴바