fork(1) download
  1. /*
  2. Median of a Sorted Linked List
  3. Given a sorted singly list of integers, return the median value.
  4. Example
  5. Input: 1 ⇒ 3 ⇒ 4 ⇒ 5 ⇒ 6 ⇒ 6 ⇒ 9
  6. Output: 5
  7.  
  8. Input: 1 ⇒ 3 ⇒ 4 ⇒ 5 ⇒ 6 ⇒ 6 ⇒ 8 ⇒ 9
  9. Output: 5.5
  10.  
  11.  
  12. */
  13.  
  14. #include <iostream>
  15. using namespace std;
  16.  
  17. int main() {
  18. // your code goes here
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
Standard output is empty