is it possible to sort an array and just get the return of the placements NOT change the order

前端 未结 0 1636
生来不讨喜
生来不讨喜 2021-02-01 03:06

I have an array of numbers

counter[7,3,9,5,1]

if i do counter.sort() it will change the array to

counter[1,3,5,7,9]
<         


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