国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

leetcode1304. Find N Unique Integers Sum up to Zero

2022-03-02 13:52 作者:您是打尖兒還是住店呢  | 我要投稿

Given an integer?n, return?any?array containing?n?unique?integers such that they add up to?0.

?

Example 1:

Input: n = 5Output: [-7,-1,1,3,4]Explanation: These arrays also are accepted [-5,-1,1,2,3] , [-3,-1,2,-2,4].

Example 2:

Input: n = 3Output: [-1,0,1]

Example 3:

Input: n = 1Output: [0]

?

Constraints:

  • 1 <= n <= 1000



這次有點(diǎn)快,有點(diǎn)不可思議,主要是看這個(gè)數(shù)據(jù)是奇數(shù)項(xiàng)還是偶數(shù)項(xiàng);

Runtime:?0 ms, faster than?100.00%?of?Java?online submissions for?Find N Unique Integers Sum up to Zero.

Memory Usage:?42.8 MB, less than?6.64%?of?Java?online submissions for?Find N Unique Integers Sum up to Zero.

Next challenges:


leetcode1304. Find N Unique Integers Sum up to Zero的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
红安县| 南汇区| 陕西省| 年辖:市辖区| 应城市| 台前县| 靖宇县| 富阳市| 翁牛特旗| 交口县| 阿克陶县| 治多县| 明溪县| 珲春市| 太保市| 韶关市| 朝阳区| 光山县| 新乐市| 余庆县| 呼玛县| 苍梧县| 宜兰市| 仙游县| 华蓥市| 澜沧| 苏州市| 义马市| 秦皇岛市| 永济市| 磐石市| 普兰店市| 昌图县| 佳木斯市| 嘉祥县| 吴川市| 昌都县| 涿州市| 周宁县| 康平县| 延川县|