ACM
文章平均质量分 73
yuluo_csdn
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
杭电 1005 Number Sequence
网上找了不少答案,都不满意,算了还是自己做吧。Problem DescriptionA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calcu原创 2015-05-31 16:35:39 · 366 阅读 · 0 评论 -
欢迎使用优快云-markdown编辑器
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl转载 2015-07-19 09:25:29 · 338 阅读 · 0 评论 -
LeetCode Regular Expression Matching
题目来源:https://leetcode.com/problems/regular-expression-matching/Regular Expression Matching‘.’匹配任意单个字符,‘*’匹配0个或多个前一字符。如果匹配整个串返回true。例:isMatch("aa","a") → falseisMatch("aa","aa")转载 2015-06-07 21:35:43 · 357 阅读 · 0 评论 -
LeetCode Palindrome Number
题目来源:https://leetcode.com/problems/palindrome-number/Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindrome原创 2015-06-07 19:57:49 · 363 阅读 · 0 评论 -
LeetCode Reverse Integer
题目来源:https://leetcode.com/problems/reverse-integer/Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here ar原创 2015-06-06 17:38:13 · 338 阅读 · 0 评论 -
LeetCode ZigZag Conversion
题目来源:https://leetcode.com/problems/zigzag-conversion/The 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原创 2015-06-06 17:10:35 · 416 阅读 · 0 评论 -
LeetCode String to Integer (atoi)
问题来源:https://leetcode.com/problems/string-to-integer-atoi/Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not原创 2015-06-06 20:50:57 · 315 阅读 · 0 评论 -
LeetCode Longest Palindromic Substring
问题来源:https://leetcode.com/problemset/algorithms/Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one uni原创 2015-06-06 16:04:01 · 321 阅读 · 0 评论 -
LeetCode Median of Two Sorted Arrays
题目来源:https://leetcode.com/problems/median-of-two-sorted-arrays/There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run t原创 2015-06-06 10:54:31 · 370 阅读 · 0 评论 -
LeetCode Two Sum
问题描述:https://leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the原创 2015-06-05 18:23:54 · 397 阅读 · 0 评论 -
LeetCode Longest Substring Without Repeating Characters
题目来源:https://leetcode.com/problems/longest-substring-without-repeating-characters/Given a string, find the length of the longest substring without repeating characters. For example, the longest su原创 2015-06-05 18:36:50 · 336 阅读 · 0 评论 -
LeetCode Add Two Numbers
问题描述:https://leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers s原创 2015-06-05 16:25:12 · 531 阅读 · 0 评论 -
Maximal Square
转载自:lhttp://www.cnblogs.com/jcliBlogger/p/4548751.htmlWell, this problem desires for the use of dynamic programming. They key to any DP problem is to come up with the state equation. In this pro转载 2015-06-05 10:28:51 · 470 阅读 · 0 评论 -
4Sum
最近较忙,没怎么写LeetCode以后尽量保证每天一道题目以上。 Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum o原创 2015-07-19 09:29:00 · 404 阅读 · 0 评论
分享