Not null
  • 홈
  • IT정보
  • C
  • Assemble
  • Python
  • System programing
  • Window
  • Linux
  • System
  • Web
  • Network
  • Forensic
  • 메뉴 닫기
  • 글작성
  • 방명록
  • 환경설정
    • All (102)
      • network (14)
      • ARM (2)
      • Programing (41)
        • C (3)
        • Assemble (0)
        • Python (8)
        • JavaScript (1)
        • Systemprograming (0)
        • 자료구조, Algorithm (20)
        • Web (4)
        • Git (2)
        • DataBase (1)
        • 운영, 배포, 관리 (2)
      • OS (4)
        • Window (0)
        • Linux (1)
        • theory (3)
      • etc, (3)
      • Hacking (18)
        • System technique (3)
        • Web technique (6)
        • Reversing (9)
      • wargame (11)
      • project (5)
        • android (2)
        • Automated vulnerability (0)
        • Vulnerability analysis (1)
        • Malware Analysis (0)
        • Code Virtualized (1)
      • school.study (1)
  • 홈
  • 태그
  • 방명록
Programing/자료구조, Algorithm

programmers - 더맵게[level2] - python

12345678910111213141516import heapqdef solution(scoville, K): answer = 0 scoville.sort() scoville = [scoville[i] for i in range(0, len(scoville)) if scoville[i]

2019. 1. 26. 03:46
Programing/자료구조, Algorithm

programmers - 올바른괄호[level2] - python

123456789101112131415def solution(s): lst =[] if s.count('(') == s.count(')') and s[0] == '(' and s[-1] == ')': for i in range(0, len(s)): if s[i] == '(': lst.append('(') elif s[i] == ')': try: lst.pop() except: print('except') return False else: return False return TrueColored by Color Scriptercs

2019. 1. 26. 02:49
Programing/자료구조, Algorithm

programmers - 주식가격[level2] - python

12345678910111213def solution(prices): answer = [] for i in range(0, len(prices)-1): # (0,3) 0,1,2 for j in range(i+1, len(prices)): # 1,4 1,2,3 if prices[i] > prices[j]: answer.append(j-i) break if j == len(prices)-1: answer.append(j-i) answer.append(0) return answerColored by Color Scriptercs

2019. 1. 26. 02:47
Programing/자료구조, Algorithm

programmers - 스킬트리[level2] - python

123456789101112131415161718192021222324252627282930def solution(skill, skill_trees): answer = len(skill_trees) skill_tmp = '' skill_lst = [skill[i] for i in range(0, len(skill))] for i in range(0, len(skill_trees)): for j in range(0, len(skill_trees[i])): for k in range(0, len(skill_lst)): if skill_trees[i][j] == skill_lst[k]: skill_tmp += skill_lst[k] print(skill_tmp) if len(skill_tmp) == 0: pa..

2019. 1. 25. 20:16
Programing/자료구조, Algorithm

programmers - 탑[level2] - python

1234567891011121314def solution(heights): answer = [0] tmp = [] for i in range(len(heights)-1, 0, -1): # 역순 for j in range(i-1, -1, -1): if heights[i]

2019. 1. 24. 00:47
Programing/자료구조, Algorithm

programmers - 기능개발[level2] - python

123456789101112131415161718192021222324def solution(progresses, speeds): answer = [] daylst = [] day = 0 for i in range(0, len(progresses)): day = (100 - progresses[i]) // speeds[i] if (100 - progresses[i]) % speeds[i]: day += 1 daylst.append(day) i = 0 j = 1 while j = daylst[j]: if j == len(daylst)-1: answer.append(j-i+1) j += 1 else: if daylst[i]

2019. 1. 24. 00:46
  • «
  • 1
  • 2
  • 3
  • 4
  • »

공지사항

전체 카테고리

  • All (102)
    • network (14)
    • ARM (2)
    • Programing (41)
      • C (3)
      • Assemble (0)
      • Python (8)
      • JavaScript (1)
      • Systemprograming (0)
      • 자료구조, Algorithm (20)
      • Web (4)
      • Git (2)
      • DataBase (1)
      • 운영, 배포, 관리 (2)
    • OS (4)
      • Window (0)
      • Linux (1)
      • theory (3)
    • etc, (3)
    • Hacking (18)
      • System technique (3)
      • Web technique (6)
      • Reversing (9)
    • wargame (11)
    • project (5)
      • android (2)
      • Automated vulnerability (0)
      • Vulnerability analysis (1)
      • Malware Analysis (0)
      • Code Virtualized (1)
    • school.study (1)
애드센스 광고 영역

블로그 인기글

Powered by Privatenote Copyright © Not null All rights reserved. TistoryWhaleSkin3.4

티스토리툴바