![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
自由の翼Az
这个作者很懒,什么都没留下…
展开
-
LeetCode——012 Integer to Roman
DescriptionRoman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Symbol ValueI 1V 5X 10L 50C 100D ...原创 2020-02-20 00:35:33 · 76 阅读 · 0 评论 -
LeetCode——010 Regular Expression Matching
DescriptionGiven 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 e...原创 2020-02-20 00:29:39 · 150 阅读 · 0 评论 -
LeetCode——009 Palindrome Number
DescriptionDetermine 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: fals...原创 2020-02-20 00:28:53 · 83 阅读 · 0 评论 -
LeetCode——008 String to Integer (atoi)
** Description **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, ...原创 2020-02-20 00:27:46 · 72 阅读 · 0 评论 -
LeetCode——007 Reverse Integer
DescriptionGiven a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note:Assume we are de...原创 2020-02-20 00:26:54 · 54 阅读 · 0 评论 -
LeetCode——006 ZigZag Conversion
DescriptionThe string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA...原创 2020-02-20 00:25:44 · 77 阅读 · 0 评论 -
LeetCode——005 Longest Palindromic Substring
DescriptionGiven a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.** Example 1: **Input: "babad"Output: "bab"Note: "aba" is also a vali...原创 2020-02-20 00:24:40 · 57 阅读 · 0 评论 -
LeetCode——003 Longest Substring Without Repeating
Given a string, find the length of the longest substring without repeating characters.** Example 1: **Input: "abcabcbb"Output: 3 Explanation: The answer is "abc", with the length of 3. ** Exampl...原创 2020-02-20 00:23:34 · 48 阅读 · 0 评论 -
LeetCode——002 Add Two Numbers
DescriptionYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers ...原创 2020-02-20 00:22:29 · 71 阅读 · 0 评论 -
LeetCode——011 Container With Most Water
DescriptionGiven 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)...原创 2020-02-20 00:21:23 · 61 阅读 · 0 评论 -
LeetCode——001 Two Sum
DescriptionGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not us...原创 2020-02-20 00:17:49 · 84 阅读 · 0 评论 -
LeetCode——004-Median-of-Two-Sorted-Arrays
DescriptionThere are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).You may assume n...原创 2019-12-30 23:20:21 · 67 阅读 · 0 评论