Thinking Hard
  • 홈
  • 태그
  • 방명록
    • ALL (48)
      • Programming (45)
        • [boj]알고리즘_Python (43)
        • [Codility]알고리즘_Python (2)
      • Node.js (1)
      • SideProject (1)
        • AromaNote (1)
      • Python (1)
  • 글작성
  • 방명록
  • 환경설정
  • 메뉴 닫기
Programming/[Codility]알고리즘_Python 검색 결과
2 개의 검색 결과가 있습니다.
Programming/[Codility]알고리즘_Python

Codility Lesson 2 - CyclicRotation

https://app.codility.com/programmers/lessons/2-arrays/ 2. Arrays lesson - Learn to Code - Codility Rotate an array to the right by a given number of steps. app.codility.com def solution(A, K): N=len(A) if N =N: K = K%N return A[N-K:]+A[:N-K] A = [3, 8, 9, 7, 6] K = 3 solution(A, K)

2022. 3. 26. 22:28
Programming/[Codility]알고리즘_Python

Codility Lesson 1 - BinaryGap

https://app.codility.com/programmers/lessons/1-iterations/ 1. Iterations lesson - Learn to Code - Codility Find longest sequence of zeros in binary representation of an integer. app.codility.com def solution(N): binary = bin(N).lstrip('0b') cnt = 0 maxc = 0 for i in binary: if i=='1': if maxc < cnt : maxc = cnt cnt = 0 else: cnt += 1 return maxc

2022. 3. 26. 22:27
  • «
  • 1
  • »
반응형

공지사항

전체 카테고리

  • ALL (48)
    • Programming (45)
      • [boj]알고리즘_Python (43)
      • [Codility]알고리즘_Python (2)
    • Node.js (1)
    • SideProject (1)
      • AromaNote (1)
    • Python (1)
  • 최근 글
  • 최근 댓글

최근 글

최근댓글

태그

  • #노드 프로젝트
  • #메모이제이션
  • #완전탐색
  • #탐욕
  • #음계
  • #알고리즘
  • #node.js
  • #백준
  • #스택
  • #설탕배달
  • #기본배열
  • #블랙잭
  • #DP
  • #큐
  • #배열
  • #파이썬
더보기+

전체 방문자

오늘
어제
전체

블로그 인기글

Powered by Privatenote Copyright © Thinking Hard All rights reserved. TistoryWhaleSkin3.4

티스토리툴바