摘要: 题目:Given a linked list, remove the nth node from the end of list and return its head. For example, Note:Given n will always be valid.Try to do this in 阅读全文
posted @ 2018-02-27 15:08 荒野第一快递员 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 题目: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 intege 阅读全文
posted @ 2018-02-27 12:29 荒野第一快递员 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum 阅读全文
posted @ 2018-02-27 12:02 荒野第一快递员 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 题目:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two en 阅读全文
posted @ 2018-02-27 10:35 荒野第一快递员 阅读(171) 评论(0) 推荐(0) 编辑