### Some logical question /answer

Find the 2 missing number from an array of N element given N-2 element Scala Code : def findMissingNums(datax:Array[Int], len:Integer) = { val total = datax.sum val actual_total = (1 to len).sum val diff = actual_total – total var i = diff var firstElem=0 var secondElem=0 while (i > 0) { if (!datax.contains(i) && diff … More Some logical question /answer