
leetcode
文章平均质量分 83
Joy CR
欢迎关注我的公众号: 小秋的博客
https://blog.youkuaiyun.com/xiaoqiu_cr
https://github.com/crr121
https://segmentfault.com/u/chenrong_flying
联系邮箱:rongchen633@gmail.com
展开
-
Two Sum
1、题目Given 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 use the sam...原创 2018-04-19 15:14:31 · 124 阅读 · 0 评论 -
198. House Robber
198. House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is t...原创 2019-08-13 17:33:10 · 184 阅读 · 0 评论 -
516. Longest Palindromic Subsequence
516. Longest Palindromic SubsequenceGiven a string s, find the longest palindromic subsequence’s length in s. You may assume that the maximum length of s is 1000.Example 1:Input:"bbbab"Output:4...原创 2019-08-15 22:23:16 · 294 阅读 · 0 评论 -
5. Longest Palindromic Substring
5. Longest Palindromic SubstringGiven 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"...原创 2019-08-15 16:44:53 · 235 阅读 · 0 评论 -
64. Minimum Path Sum
64. Minimum Path SumGiven a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can only move eithe...原创 2019-08-14 16:04:17 · 206 阅读 · 0 评论 -
866. Prime Palindrome
866. Prime PalindromeFind the smallest prime palindrome greater than or equal to N.Recall that a number is prime if it’s only divisors are 1 and itself, and it is greater than 1.For example, 2,3,5,...原创 2019-08-18 17:28:02 · 236 阅读 · 0 评论 -
337House Robber III
337. House Robber IIIThe thief has found himself a new place for his thievery again. There is only one entrance to this area, called the “root.” Besides the root, each house has one and only one pare...原创 2019-08-13 17:32:33 · 248 阅读 · 0 评论 -
213. House Robber II
213. House Robber IIYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a circle. That mean...原创 2019-08-13 17:32:56 · 207 阅读 · 0 评论 -
150逆波兰式
文章目录150.Evaluate Reverse Polish NotationSolution150.Evaluate Reverse Polish NotationMediumEvaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. ...原创 2019-08-13 17:33:49 · 261 阅读 · 0 评论 -
Valid Perfect Square
1、题目Given a positive integer num, write a function which returns True if num is a perfect square else False.Note: Do not use any built-in library function such as sqrt.Example 1:Input: 16Return...原创 2018-05-11 16:00:31 · 174 阅读 · 0 评论 -
Word Pattern
1、题目Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in str.Ex...原创 2018-05-11 14:56:23 · 139 阅读 · 0 评论 -
Merge Two Sorted Lists
1、题目Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Example:Input: 1->2->4, 1->3->4Output: 1-&g...原创 2018-04-19 17:12:27 · 117 阅读 · 0 评论 -
Valid Parentheses
1、题目Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.An input string is valid if:Open brackets must be closed by the same type of b...原创 2018-04-19 16:13:12 · 125 阅读 · 0 评论 -
10. Regular Expression Matching
10. Regular Expression MatchingGiven an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or m...原创 2019-08-17 16:09:21 · 207 阅读 · 0 评论