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
- C++
- Flutter
- codingtest
- 백준
- 동적계획법
- 동적계획법과최단거리역추적
- Algorithm
- cos
- django
- 개발
- cos pro
- DART
- android
- issue
- cos pro 1급
- 분할정복
- 안드로이드
- 파이썬
- 알고리즘
- DFS
- vuejs
- Vue
- AndroidStudio
- DFS와BFS
- 코딩테스트
- 안드로이드스튜디오
- Python
- BAEKJOON
- 코드품앗이
- 코테
Archives
- Today
- Total
목록해밍거리구하기 python (1)
Development Artist
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cUdO4d/btruc6d05KB/MXTs2bxn8kryfVi5TVGKu0/img.png)
문제 유형 빈칸 난이도 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