#python code

1 messages · Page 1 of 1 (latest)

last dragon
#

I need help with what it is asking.
Perhaps you could elaborate so that we can pin point what you exactly need and help you with it?

halcyon bridge
#

basically, if you have "10\n9\n5\n1" then isDescending() returns true

#

You can use in Java / JS:


function isDescending(list) 
{
var last_x = list[0];
for(var x in list)
{
if (last_x < x) 
 return false;
else
 last_x = x;
}
return true;
}