コード例 #1
0
ファイル: test.py プロジェクト: johnnywsd/leetcode_python
 def test1(self):
     s = Solution()
     num = [1, 3, 5, 7, 2, 4, 6, 8]
     target = 9
     res = s.twoSum(num, target)
     print res
コード例 #2
0
ファイル: test.py プロジェクト: johnnywsd/leetcode_python
 def test2(self):
     s = Solution()
     num = [3, 2, 4]
     target = 6
     res = s.twoSum(num, target)
     print res