전체 글418 How to Get Back to Sleep After Waking Up at Night How to Get Back to Sleep After Waking Up at NightBY JAMIE FRIEDLANDER SERRANOJUNE 6, 2024 12:03 PM EDT나는 잠귀가 밝은 편이어서 주위 움직임에 금방 깨는 편이다. 예전에는 낮밤이 바뀌어 불면증이 었었던 적도 있었다.이 뉴스는 당연한 이야기들이 대부분이었다. 자기전에 핸드폰 보지 마라, 커피 조절 해라...솔직히 우리가 대부분 알지만 잘 지키고 있지 않은 부분들이 아닌가?물론 잠을 자는데 무리가 없다면 크게 문제되지는 않지만 ^^ 하지만 이 뉴스가 유익하다고 생각한 이유는 병과 관련된 단어들을 많이 접할 수 있었고,'잠을 잔다'라는 표현을 다양하게 표현해주는 것이 좋았다. 의학 관련된 뉴스를 자주 보는 것도 단어의 다양성에 익.. 2024. 6. 24. 유클리드 호제법 유클리드 호제법 (euclidean - algorithm) 두 수의 최대공약수 구하는 알고리즘 핵심이론: MOD 연산: 두 값을 나눈 나머지를 구하는 연산1. 큰 수를 작은 수로 나누는 MOD 연산을 수행한다.2. 앞 단계에서 작은 수와 MOD 연산 결과값(나머지)으로 MOD 연산을 수행한다.3. 2를 반복하다가 나머지가 0이 되는 순간의 작은 수를 최대공약수로 선택한다. def GCD(x , y): min_num = min(x, y) max_num = max(x, y) if min_num == 0: return max_num else: return GCD(min_num, max_num%min_num) 2024. 6. 23. 타일 채우기 4 첫번째 코드 넓이를 구한 후 타일의 크기의 넓이(1 * 2)로 나눈 몫을 구한다! import sys input = sys.stdin.readline n, m = map(int, input().split()) answer = n * m // 2 print(answer) 통과링크https://github.com/ornni/programmers/tree/main/%EB%B0%B1%EC%A4%80/Bronze/15700.%E2%80%85%ED%83%80%EC%9D%BC%E2%80%85%EC%B1%84%EC%9A%B0%EA%B8%B0%E2%80%854 programmers/백준/Bronze/15700. 타일 채우기 4 at main · ornni/programmersrepository for recording .. 2024. 6. 23. Attention Is All You Need 리뷰 목차0. Abstract1. Introduction2. Background3. Model Architecture3.1 Encoder and Decoder Stacks3.2 Attention3.2.1 Scaled Dot-Product Attention3.2.2 Multi-Head Attention3.2.3 Applications if Attention in our Model3.3 Position-wise Feed-Forward Networks3.4 Embeddings and Softmax3.5 Positional Encoding4. Why Self-Attention5. Training5.1 Training Data and Batching5.2 Hardware and Schedule5.3 Optimizer5.. 2024. 6. 22. Split a String in Balanced Strings 첫번째 코드 개수로 생각하면 되겠다는 생각을 했다.R이 나오면 1을 더하고L이 나오면 1을 빼서0이 나올때 마다 정답에 1을 더하는 방법으로 진행하였다. class Solution: def balancedStringSplit(self, s: str) -> int: count = 0 answer = 0 for i in s: if i == 'R': count += 1 else: count -= 1 if count == 0: answer += 1 ret.. 2024. 6. 22. Find Words Containing Character 첫번째 코드 만약 단어 안에 x가 있으면 해당 인덱스를 정답에 포함하는 방법을 이용한다. class Solution: def findWordsContaining(self, words: List[str], x: str) -> List[int]: answer = [] index = 0 for i in words: if x in i: answer.append(index) index += 1 return answer 통과!링크https://github.com/ornni/leetcode/tree/main/2942-find-words-containing-charac.. 2024. 6. 21. 이전 1 ··· 33 34 35 36 37 38 39 ··· 70 다음 728x90