上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 43 下一页

2019年4月25日

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) 编辑

2019年4月24日

10. Regular Expression Matching (JAVA)

摘要: Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. '.' Matches any single character.'*' 阅读全文

posted @ 2019-04-24 14:12 joannae 阅读(142) 评论(0) 推荐(0) 编辑

2019年4月23日

9. Palindrome Number (JAVA)

摘要: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Input: 121Output: true 阅读全文

posted @ 2019-04-23 17:54 joannae 阅读(149) 评论(0) 推荐(0) 编辑

2018年8月18日

sed (未完,待续)

摘要: sed [options] 'command' file(s) options: command: 阅读全文

posted @ 2018-08-18 18:38 joannae 阅读(153) 评论(0) 推荐(0) 编辑

grep及正则表达式

摘要: grep [OPTIONS] PATTERN [FILE...] OPTIONS: -i:忽略字符的大小写 -o:仅显示匹配到的字符串 -v:显示不能被模式匹配到的行 -E:支持使用扩展的正则表达式,grep -E等同于egrep,正则表达式可以不使用转义符\ -q:静默模式,即不输出任何信息 -A 阅读全文

posted @ 2018-08-18 12:09 joannae 阅读(174) 评论(0) 推荐(0) 编辑

2018年5月21日

167. Two Sum II - Input array is sorted (Array)

摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文

posted @ 2018-05-21 11:52 joannae 阅读(98) 评论(0) 推荐(0) 编辑

2017年4月8日

169. Majority Element (Array)

摘要: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the 阅读全文

posted @ 2017-04-08 20:18 joannae 阅读(111) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 43 下一页

导航