找出數組中兩個數之和爲指定的數

找出數組中兩個數之和爲指定的數 這個是lc中的一個簡單題,原題描述以下: web 也就是說給定一個整型的數組,返回兩個數的下標,固然了,這兩個數不是隨意的,這兩個數的和要等於給定target。 下面是個人實現:數組 public class Solution { public int[] twoSum(int[] nums, int target) { int[] rst
相關文章
相關標籤/搜索