摘要:
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl 阅读全文
posted @ 2018-03-03 06:59
轻风舞动
阅读(1900)
评论(0)
推荐(0)
摘要:
Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the thr 阅读全文
posted @ 2018-03-03 04:41
轻风舞动
阅读(342)
评论(0)
推荐(0)
摘要:
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s 阅读全文
posted @ 2018-03-03 04:26
轻风舞动
阅读(430)
评论(0)
推荐(0)
摘要:
Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the or 阅读全文
posted @ 2018-03-03 03:10
轻风舞动
阅读(580)
评论(0)
推荐(0)

浙公网安备 33010602011771号