전체 글
-
-
capitalize_every_word카테고리 없음 2022. 1. 28. 01:02
https://www.30secondsofcode.org/python/s/capitalize-every-word?from=recommendations capitalize_every_word - 30 seconds of code Capitalizes the first letter of every word in a string. www.30secondsofcode.org a.upper() : 문자열 전체를 대문자화 a.title() : 문자열의 첫 글자만 대문자화 def cap_every_word(): word = "helloWorld!" cap_word = word.upper() first_word = word.title() print(cap_word, first_word) # 출력 문자열 : HELLOW..
-
BigO 표기법카테고리 없음 2022. 1. 20. 11:16
https://noahlogs.tistory.com/m/27 빅오 표기법 (big-O notation) 이란 컴퓨터 과학(Computer Science) 에서 알고리즘은 어떠한 문제를 해결하기 위한 방법이고, 어떠한 문제를 해결 하기 위한 방법은 다양하기 때문에 방법(알고리즘) 간에 효율성을 비교하기 위해 빅오( noahlogs.tistory.com https://story-of-flower.tistory.com/m/149 BIG-O 함수에 대하여 https://www.youtube.com/watch?v=wWJepvwnDRo 영향력 없는 항 무시 O(N² + N) -> O(N²) O(N²)이 가장 지배적이기 때문에 그 외에 영향력이 없는 항들은 무시합니다. big-O에는 다양한 실행 시간이 존재하지만....