SHARE
TWEET

Untitled

a guest Sep 19th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fun somar(a: List<Int>, b: List<Int>): Int {
  2.     var soma = 0                // 1
  3.     for (i in a) {              //n+1
  4.         for (j in b) {          //n * (n+1)
  5.             soma += i + j       //n * n
  6.         }
  7.     }
  8.     return soma                 // 1
  9. }
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