SHARE
TWEET

Untitled

a guest Oct 21st, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Runtime: 0 ms, faster than 100.00% of Java online submissions for Airplane Seat Assignment Probability.
  2. // Memory Usage: 33.2 MB, less than 100.00% of Java online submissions for Airplane Seat Assignment Probability.
  3. class Solution {
  4.     public double nthPersonGetsNthSeat(int n) {      
  5.         return n >= 2 ? 0.5: 1.0;
  6.     }
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top