-
Practice>Python>Sets>The Captain's Roomhackerrank.com 2019. 3. 8. 13:36728x90
The Captain's Room
Problem link : https://www.hackerrank.com/challenges/py-the-captains-room/problemDifficulty : EasyTip
- Problem description is a bit long
- Point is that captain's room number is appeared only once
- Other room number is repeated
- Create defatultdict with lamda: 0
- room number is a key of dict, and +1 when the number is appeared
- check what key is only appeared one time
Solution
728x90'hackerrank.com' 카테고리의 다른 글
Practice>Python>Sets>Check Strict Superset (0) 2019.03.09 Practice>Python>Sets>Check Subset (0) 2019.03.09 Practice>Python>Math>Triangle Quest (0) 2019.03.07 Practice>Python>Math>Integers Come In All Sizes (0) 2019.03.07 Practice>Python>Debugging>Words Score (0) 2019.03.07