自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 [leetcode] 4. 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

2016-04-30 03:06:07 769

原创 [leetcode] 342. Power of Four 解题报告

题目链接:https://leetcode.com/problems/power-of-four/Given an integer (signed 32 bits), write a function to check whether it is a power of 4.Example:Given num = 16, return true. Given num = 5,

2016-04-29 08:16:40 1004

原创 [leetcode] 344. Reverse String 解题报告

题目链接:https://leetcode.com/problems/reverse-string/Write a function that takes a string as input and returns the string reversed.Example:Given s = "hello", return "olleh".思路: 很简单的一题, 没什么好

2016-04-29 02:01:16 592

原创 [leetcode] 345. Reverse Vowels of a String 解题报告

题目链接: https://leetcode.com/problems/reverse-vowels-of-a-string/Write a function that takes a string as input and reverse only the vowels of a string.Example 1:Given s = "hello", return "ho

2016-04-29 01:57:59 1112

原创 [leetcode] 12. Integer to Roman 解题报告

题目链接: https://leetcode.com/problems/integer-to-roman/Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.思路: 罗马数字有如下符号:Ⅰ(1)Ⅴ(5)Ⅹ

2016-04-13 14:38:27 462

原创 [leetcode] 337. House Robber III 解题报告

题目链接: https://leetcode.com/problems/house-robber-iii/The 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,

2016-04-13 13:45:02 705

原创 [leetcode] 338. Counting Bits 解题报告

题目链接: https://leetcode.com/problems/counting-bits/Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation

2016-04-13 08:54:39 1260 1

原创 [leetcode] 341. Flatten Nested List Iterator 解题报告

题目链接: https://leetcode.com/problems/flatten-nested-list-iterator/Given a nested list of integers, implement an iterator to flatten it.Each element is either an integer, or a list -- whose el

2016-04-10 10:01:05 4960

原创 [leetcode] 340. Longest Substring with At Most K Distinct Characters 解题报告

题目链接: https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters/Given a string, find the length of the longest substring T that contains at most k distinct characters.

2016-04-03 12:28:01 6537

原创 [leetcode] 44. Wildcard Matching 解题报告

题目链接: https://leetcode.com/problems/wildcard-matching/Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters

2016-04-02 15:22:52 1086

原创 [leetcode] 330. Patching Array 解题报告

题目链接: https://leetcode.com/problems/patching-array/Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclusive c

2016-04-02 06:05:35 1694

qt3扫雷代码

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

2013-11-15

空空如也

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

TA关注的人

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