Spurs

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2017年8月22日

摘要: Given an array of integers sorted in ascending order, find the starting and ending position of a given target value. Your algorithm's runtime complexi 阅读全文
posted @ 2017-08-22 19:05 英雄与侠义的化身 阅读(112) 评论(0) 推荐(0) 编辑

摘要: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array whic 阅读全文
posted @ 2017-08-22 12:12 英雄与侠义的化身 阅读(95) 评论(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 integers. 阅读全文
posted @ 2017-08-22 10:44 英雄与侠义的化身 阅读(103) 评论(0) 推荐(0) 编辑