hackerrank.com
Practice>Python>Sets>The Captain's Room
건이두
2019. 3. 8. 13:36
728x90
The Captain's Room
Problem link : https://www.hackerrank.com/challenges/py-the-captains-room/problem
Difficulty : Easy
Tip
- 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