Airplane Seat Assignment Probability LeetCode solution in Python

1
class Solution:
2
def nthPersonGetsNthSeat(self, n: int) -> float:
3

4
return 0.5 if n > 1 else 1

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0