fork(1) download
  1. l = 0, h = n
  2. while l + 1 < h:
  3. mid = (l+h)/2
  4. if P(mid): l = mid
  5. else: h = mid
  6. return l
  7.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
l = 0, h = n
^
1 error
stdout
Standard output is empty