무근본 개발자에서 근본있는 개발자로...

무근본 개발자에서 근본있는 개발자로...

  • 분류 전체보기 (37)
    • 일기 (1)
    • 개발 (35)
      • AI&ML (2)
      • Django (7)
      • Docker (0)
      • Python (4)
      • graphQL (3)
      • 오늘의 소소한꿀팁 (7)
      • DataBase System(SNUON 강의) (2)
      • Go (3)
      • 네트워크 (2)
      • 알고리즘 (3)
      • aws (2)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

무근본 개발자에서 근본있는 개발자로...

컨텐츠 검색

태그

programmers Python docker-compose pandas docker django-serializer rest-api django graphql Postgres graphene parellel go Algorithm rest-framework go routine serverless leetcode machine code Asynchronous

최근글

댓글

공지사항

아카이브

Algorithm(2)

  • 20200630 programmers print

    def max_count(priorities): max_num = 0 max_idx = 0 length = len(priorities) for i in range(length): if priorities[i] > max_num: max_num = priorities[i] max_idx = i return max_num, max_idx def solution(priorities, location): answer = 0 while True: max_num, max_idx = max_count(priorities) if location > max_idx: priorities = priorities[max_idx+1:] + priorities[:max_idx] location = location - max_id..

    2020.06.30
  • 20200625 Leetcode two sum python solution

    class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: hmap = {} for i in range(len(nums)): idx = hmap.get(nums[i]) if idx: return [idx-1,i] hmap[target-nums[i]] = i+1

    2020.06.25
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바