自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Wayne2019的博客

此刻,此地

  • 博客(5)
  • 收藏
  • 关注

原创 LeetCode: 继续easy题9

Escape The Ghosts """ """ class Solution { public: int distance(vector<int>& s1, vector<int>& s2){ return abs(s1[0]-s2[0])+abs(s1[1]-s2[1]); } bool escapeGho..

2018-02-27 06:10:19 249

原创 LeetCode: 继续easy题8

Nth Digit """蛋疼,老Time Limit Exceeded,结果最后是两个long的地方越界 """ class Solution { public: int findNthDigit(int n) { /* i=1: 1,...,9: 9 num_i i=2: 10,...,99: 90 ...

2018-02-25 12:35:12 299

原创 LeetCode: 继续easy题7

Reverse Vowels of a String """ """ class Solution { public: bool isVowel(char a){ if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u') return true; if(a=='A'||a=='E'||a=='...

2018-02-16 04:33:48 297

原创 LeetCode: 继续easy题6

Lowest Common Ancestor of a Binary Search Tree """递归解法,想好边界条件,简单 """ /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * ...

2018-02-12 10:51:11 277

原创 LeetCode: 继续easy题5

Contains Duplicate """简单 O(n), O(n) """ class Solution { public: bool containsDuplicate(vector<int>& nums) { unordered_map<int,int> map; for (int i=0; i<nums...

2018-02-11 21:35:43 262

空空如也

空空如也

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

TA关注的人

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