2019年4月25日

16. 3Sum Closest (JAVA)

摘要: 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 @ 2019-04-25 22:51 joannae 阅读(107) 评论(0) 推荐(0) 编辑

15. 3Sum (JAVA)

摘要: Given an array nums of n integers, are there elements a, b, cin nums such that a + b + c = 0? Find all unique triplets in the array which gives the su 阅读全文

posted @ 2019-04-25 19:04 joannae 阅读(143) 评论(0) 推荐(0) 编辑

13. Roman to Integer (JAVA)

摘要: Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, just two one's 阅读全文

posted @ 2019-04-25 16:20 joannae 阅读(145) 评论(0) 推荐(0) 编辑

12. Integer to Roman (JAVA)

摘要: Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, just two one's 阅读全文

posted @ 2019-04-25 15:47 joannae 阅读(226) 评论(0) 推荐(0) 编辑

11. Container With Most Water (JAVA)

摘要: 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 endp 阅读全文

posted @ 2019-04-25 15:20 joannae 阅读(145) 评论(0) 推荐(0) 编辑

导航