Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- android
- DFS와BFS
- 코딩테스트
- BAEKJOON
- issue
- 개발
- cos pro
- 안드로이드스튜디오
- 백준
- 코드품앗이
- C++
- DART
- 안드로이드
- cos pro 1급
- 알고리즘
- 분할정복
- Flutter
- AndroidStudio
- Algorithm
- vuejs
- 파이썬
- 동적계획법과최단거리역추적
- DFS
- codingtest
- 코테
- 동적계획법
- django
- cos
- Vue
- Python
Archives
- Today
- Total
목록cos 해밍거리구하기 python (1)
Development Artist

문제 유형 빈칸 난이도 easy Note 1. 해밍 디스턴스(Hamming distance)가 무엇인지. Code def func_a(string, length): padZero = "" padSize = length - len(string) for i in range(padSize): padZero += "0" return padZero + string def solution(binaryA, binaryB): max_length = max(len(binaryA), len(binaryB)) binaryA = func_a(binaryA, max_length) binaryB = func_a(binaryB, max_length) hamming_distance = 0 for i in range(max_lengt..
Algorithm/COS
2022. 2. 24. 17:04