logAllPairsOfArray
logAllPairsOfArray
aneagoie
aneagoie
This repl has no description
More repls
4comments
to comment
yingweiliu
yingweiliu2 months ago

O(n^2)

AbdulRahman103
AbdulRahman1032 months ago

O(N^2)

ZaidZakir
ZaidZakir7 months ago

for kotlin

fun main(){ val array = arrayOf(1,2,3,4,5) for (element1 in array){ for (element2 in array){ print(element1) print(element2) println() } }}

Anonav0
Anonav08 months ago

Big O is O(n^2)