Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Runtime: 0 ms, faster than 100.00% of Java online submissions for Airplane Seat Assignment Probability.
- // Memory Usage: 33.2 MB, less than 100.00% of Java online submissions for Airplane Seat Assignment Probability.
- class Solution {
- public double nthPersonGetsNthSeat(int n) {
- return n >= 2 ? 0.5: 1.0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement