일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
Tags
- Generator
- iterator
- 운영체제
- Convert Sorted List to Binary Search Tree
- t1
- 30. Substring with Concatenation of All Words
- attribute
- Regular Expression
- Substring with Concatenation of All Words
- 밴픽
- concurrency
- Python Implementation
- 컴퓨터의 구조
- 715. Range Module
- 109. Convert Sorted List to Binary Search Tree
- Class
- Python
- Protocol
- LeetCode
- 43. Multiply Strings
- shiba
- 파이썬
- kaggle
- data science
- 시바견
- DWG
- Python Code
- 315. Count of Smaller Numbers After Self
- Decorator
- 프로그래머스
Archives
- Today
- Total
목록카카오 코테 (1)
Scribbling
프로그래머스: 오픈채팅방
2019 카카오 코딩 테스트 기출 문제라고 한다. 단순 구현문제다. from collections import defaultdict def solution(record): results = [] record_dict = defaultdict(list) nickname_dict = {} for rec in record: rec = rec.split(' ') if rec[0] == 'Enter': user_id, nickname = rec[1], rec[2] results.append(nickname + "님이 들어왔습니다.") record_dict[user_id].append(len(results) - 1) if user_id not in nickname_dict: nickname_dict[user_id]..
Computer Science/Coding Test
2021. 11. 8. 22:02