- Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathcircle.py
More file actions
Latest commit
18 lines (17 loc) · 516 Bytes
/
Copy pathcircle.py
File metadata and controls
18 lines (17 loc) · 516 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
classSolution:
"""
@param circles: The value of 6 points on n rings
@return: Whether there are two same circles
"""
defsamecircle(self, circles):
# write your code here
s=set()
forcircleincircles:
circle.sort()
_circle='-'.join([str(c) forcincircle])
if_circleins:
returnTrue
else:
s.add(_circle)
returnFalse
# easy: https://www.lintcode.com/problem/circle/