How to get top 3 values from a vector smaller than a particular value?

后端 未结 0 1118
萌比男神i
萌比男神i 2021-01-04 22:17

I have a vector {42.195 42.195 39.025 40.075 34.220 42.195 39.750}. Here I want to get top 3 values just smaller than 42.195. Below is my approach.

  1. I sorted the
相关标签:
回答
  • 消灭零回复
提交回复
热议问题