-
Practice>Python>Sets>Symmetric Differencehackerrank.com 2019. 2. 13. 12:52728x90
Symmetric Difference
problem link : https://www.hackerrank.com/challenges/symmetric-difference/problem?h_r=next-challenge&h_v=zendifficulty : easyTip
- sorted() not sort() :-) is to sort items in a list
- one set = M - N
- other set = N - M
- one set.update(other set)
- covert set to list
- sort list
- it's not a tip, it is almost solution :)
Solution
728x90'hackerrank.com' 카테고리의 다른 글
Practice>Python>Errors and Exceptions>Exceptions (0) 2019.02.14 Practice>Python>Date and Time>Calendar Module (0) 2019.02.13 Practice>Python>Sets>Introduction to Sets (0) 2019.02.13 Practice>Python>Math>Polar Coordinates (0) 2019.02.12 hackerrank.com Practice>Python>Collections>Collections.namedtuple() (0) 2019.02.11