Skip to content

Commit 69e70b1

Browse files
committed
Time: 58 ms (24.34%), Space: 17.4 MB (10.36%) - LeetHub
1 parent cb59781 commit 69e70b1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Solution:
2+
def isGood(self, nums: List[int]) -> bool:
3+
n = len(nums)
4+
base = [i for i in range(1, n-1)] + [n-1, n-1]
5+
print(base)
6+
if sorted(nums) == sorted(base):
7+
return True
8+
else:
9+
return False

0 commit comments

Comments
 (0)