How to append closest value in a list

后端 未结 0 1803
刺人心
刺人心 2021-01-03 14:12

I have a list =[15,3,12,9,8,7] and k=18 . sorted in reverse list = [15,12,9,,8,7,3]

i want to append the first value i.e 15 of my list in arr1[] and seco

相关标签:
回答
  • 消灭零回复
提交回复
热议问题