Find nearest smaller number in array

前端 未结 2 1653
孤街浪徒
孤街浪徒 2020-12-12 04:22

I would like to be able to find the nearest smaller value in an array of numbers. For instance, if I have:

[1, 4, 6, 9, 14, 39]

And I\'m lo

2条回答
提交回复
热议问题