leetcode
night李
要做一条有梦想的咸鱼
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
11. Container With Most Water
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 endpoints of line i is at (i, ai) and (i, 0). Find two l...原创 2019-02-27 21:25:08 · 301 阅读 · 0 评论 -
12. Integer to Roman
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Symbol ValueI 1V 5X 10L 50C 100D ...原创 2019-03-01 00:33:54 · 219 阅读 · 0 评论 -
8. String to Integer (atoi)
Implement atoi which converts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this...原创 2019-02-25 20:19:19 · 188 阅读 · 0 评论 -
9 Palindrome Number
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.Example 1:Input: 121Output: trueExample 2:Input: -121Output: falseExplanation...原创 2019-02-25 20:21:29 · 201 阅读 · 0 评论 -
10. Regular Expression Matching
Given an input string (s) and a pattern §, implement regular expression matching with support for ‘.’ and ‘*’.‘.’ Matches any single character.‘*’ Matches zero or more of the preceding element.The ...原创 2019-02-26 21:52:25 · 346 阅读 · 0 评论 -
leedcode 121,70
Best Time to Buy and Sell StockShareSay you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (i.e., bu...原创 2019-06-20 12:10:38 · 181 阅读 · 0 评论
分享