Demo entry 1958243

ex1

   

Submitted by anonymous on Jun 19, 2015 at 07:25
Language: TypeScript. Code size: 184 Bytes.

function minIndexFO(a) {
  if (a.length <= 0) 
    return -1;
  var min = 0;
  for (var i = 0; i < a.length; i++) {
    if (a[i] < a[min])
      min = i;
  }
  return min;
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).