is a “non-decreasing” sequence “increasing”?

后端 未结 8 720
梦如初夏
梦如初夏 2020-12-23 16:27

While studying the book \"Introduction to Algorithms by Cormen\", I found a strange thing. Everywhere if it refers to an increasing order, the book refers it as \"non-decrea

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-23 16:46

    1,2,3,4 is an increasing sequence or a non-decreasing sequence.

    1,1,1,1 is a non-decreasing sequence but isn't an increasing sequence.

提交回复
热议问题