Ascending/Descending
Is there an elegant way to determine if the numbers in a list are all ascending/descending in value without asking if (5 < 4) && (4< 3) etc?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit GuptaRank #190 · 12.8K reputationPosted Apr 19, 2021, 3:48 PM EDT