Skip to content

Instantly share code, notes, and snippets.

View aconsuegra's full-sized avatar

Antonio J. Consuegra aconsuegra

  • GitHub Staff
  • Berlin
View GitHub Profile
@aconsuegra
aconsuegra / MultiplyLists.kt
Last active October 28, 2016 10:09
Multiply list
class MultiplyLists {
fun multiplyListSlow(list: IntArray) : IntArray {
val result : IntArray = IntArray(list.size)
for (i in list.indices) {
var mult : Int = 1
for (j in list.indices) {
if (i != j) {