摘要:
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. 阅读全文
摘要:
题目描述 输入两个链表,找出它们的第一个公共结点。 这个题本来是不准备发博客的,因为太简单了... 思路一:大致思路是先分别求出他们的长度,然后让长的先走差值步数。然后长的短的一起走,第一次相遇的节点就是结果 上代码 /* public class ListNode { int val; ListN 阅读全文