2014年8月5日

Using an Interface as a Type

摘要: When you define a new interface, you are defining a new reference data type. You can use interface names anywhere you can use any other data type name... 阅读全文

posted @ 2014-08-05 13:41 Step-BY-Step 阅读(215) 评论(0) 推荐(0) 编辑

4Sum

摘要: Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ... 阅读全文

posted @ 2014-08-05 13:19 Step-BY-Step 阅读(218) 评论(0) 推荐(0) 编辑

Roman to Integer

摘要: Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 1 public class Solution { 2 public int ... 阅读全文

posted @ 2014-08-05 10:26 Step-BY-Step 阅读(147) 评论(0) 推荐(0) 编辑

3Sum Closest

摘要: Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m... 阅读全文

posted @ 2014-08-05 10:01 Step-BY-Step 阅读(100) 评论(0) 推荐(0) 编辑

导航