daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func sumWithRecursion (numbers: LinkedList<Int>) -> Int {
  2.     let node = numbers.head
  3.    
  4.     if node == nil {
  5.         return 0
  6.     }
  7.     return (numbers.remove(node: node!) + sumWithRecursion(numbers: numbers))
  8. }
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