摘要:
func addTwoNumbers(l1 *ListNode, l2 *ListNode) *ListNode { if l1 == nil { return l2 } if l2 == nil { return l1 } prehead := &ListNode{Val:0} cur := prehead jw := 0 for l1!=nil || l2 != ... 阅读全文
摘要:
func twoSum(nums []int, target int) []int { ret := make([]int, 0) if len(nums) < 2 { return ret } for i:=0;i<len(nums);i++ { for j:=i+1;j<len(nums);j++ { ... 阅读全文