Find the opposite number in the array

前端 未结 0 998
盖世英雄少女心
盖世英雄少女心 2021-01-27 06:29

I\'m trying to find the opposite number in the array.

Let\'s say we have this array: [1,3,4,-3]

What I want is:

{ \'1\': 1, \'3\': 2, \         


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