自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (4)
  • 问答 (1)
  • 收藏
  • 关注

原创 Find the Difference

https://leetcode.com/problems/find-the-difference/思路:把字符串s存到hash表中,相同字母累加; 遍历字符串t,字符对应hash表的字符个数则减一,如果小于0则返回得到结果 class Solution { public: char findTheDifference(string s, string t) { map<ch

2016-10-03 11:49:04 381

原创 Sum of Left Leaves

https://leetcode.com/problems/sum-of-left-leaves/思路:递归求解,给一个标记,向左子树遍历则为true /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right;

2016-10-03 00:56:05 416

原创 二叉树先序遍历中序遍历递归及非递归解法

Given a binary tree, return the preorder traversal of its nodes’ values. For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [1,2,3]. 先序遍历非递归: /** * Definition for a

2016-10-02 23:14:03 427

原创 two-sum

根据找出数组中两个数相加等于target,返回数组对应的下标。class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { int len = nums.size(); map<int,int> mp; for(int i = 0;i < len;i++

2016-10-01 15:47:10 302

拦截器spring mvc

拦截器spring mvc,非常经典,非常容易理解,结合例子。官方推荐

2018-03-11

《游戏开发技术》遵循路径走

《游戏开发技术》遵循路径走课本源码

2016-08-11

优先级调度和轮转调度算法

优先级调度 和 轮转调度算法的介绍,含相关测试数据

2015-05-08

C++example

如果你想学会C++,必须多多实践,另外,合作愉快

2014-07-16

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

TA关注的人

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