自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (1)
  • 收藏
  • 关注

原创 [leetcode] 414. Third Maximum Number 解题报告

题目链接:https://leetcode.com/problems/third-maximum-number/Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The t

2016-10-26 23:43:22 2054

原创 [leetcode] 438. Find All Anagrams in a String 解题报告

题目链接:https://leetcode.com/problems/find-all-anagrams-in-a-string/Given a string s and a non-empty string p, find all the start indices of p's anagrams in s.Strings consists of lowercase Engl

2016-10-26 22:46:39 3529

原创 [leetcode] 418. Sentence Screen Fitting 解题报告

xxx: https://leetcode.com/problems/sentence-screen-fitting/Given a rows x cols screen and a sentence represented by a list of words, findhow many times the given sentence can be fitted on the

2016-10-14 07:25:27 6826

原创 [leetcode] 416. Partition Equal Subset Sum 解题报告

题目链接:https://leetcode.com/problems/partition-equal-subset-sum/Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum o

2016-10-10 04:43:26 6621

原创 [leetcode] 415. Add Strings 解题报告

题目链接:https://leetcode.com/problems/add-strings/Given two non-negative numbers num1 and num2 represented as string, return the sum of num1 and num2.Note:The length of both num1 and num2

2016-10-10 04:16:05 1539

原创 [leetcode] 409. Longest Palindrome 解题报告

题目链接:https://leetcode.com/problems/longest-palindrome/Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those let

2016-10-10 04:01:48 995

原创 [leetcode] 408. Valid Word Abbreviation 解题报告

题目链接:https://leetcode.com/problems/valid-word-abbreviation/Given a non-empty string s and an abbreviation abbr, return whether the string matches with the given abbreviation.A string such

2016-10-10 03:48:20 3140

原创 [leetcode] 404. Sum of Left Leaves 解题报告

题目链接:https://leetcode.com/problems/sum-of-left-leaves/Find the sum of all left leaves in a given binary tree.Example: 3 / \ 9 20 / \ 15 7There are two left leave

2016-10-10 03:23:03 918

原创 [leetcode] 396. Rotate Function 解题报告

题目链接:https://leetcode.com/problems/rotate-function/Given an array of integers A and let n to be its length.Assume Bk to be an array obtained by rotating the array A k positions clock-wise,

2016-10-09 09:15:28 557

原创 c++在用set和multiset时遇到的一个bug

今天在写一个程序时用到了set和multiset,因为我需要让其中的元素对降序排列,所以写了一个functor,为图省事,我只比较了pair中首个元素如下:struct cmp{ bool operator()(pair a, pair b) { return a.first > b.first; }};然后噩梦就开始了!刚开始我用的是set, 在我往se

2016-10-03 13:53:51 522

qt3扫雷代码

本程序制作精心,代码完整,为10*10大小的雷区,等级分为三级,简单,中等,困难。其中布雷使用随机数生成,扫空格使用广度搜索BFS,基本具备了扫雷的应有的功能。界面友善,希望能对你有帮助。

2013-11-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除