自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (6)
  • 收藏
  • 关注

原创 [Leetcode]Palindrome Number

class Solution { public: bool isPalindrome(int x) { if(x<0) return false; if(x<10) return true; int n = 0; int y = x; while(y){ n++;

2016-09-30 11:28:01 179

原创 [Leetcode] Pascal's Triangle II

Pascal's Triangle II Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you optimize your algorithm to use only O(k)

2016-09-30 11:06:32 156

原创 Implement Queue using Stacks

用两个栈来操作,t存储队列的逆序,每次加入新元素就倒序使用s class Queue { public: // Push element x to the back of queue. void push(int x) { stack s; while(!t.empty()) { s.push(t.top());

2016-09-29 11:19:24 262

原创 [Leetcode] Remove Duplicates from Sorted Array

class Solution { public: int removeDuplicates(vector& nums) { if(nums.size() == 0) return 0; stack s; sort(nums.begin(),nums.end()); s.push(nums[0]); for(au

2016-09-29 10:49:18 203

原创 [Leetcode] Balanced Binary Tree

/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ clas

2016-09-28 20:56:30 162

原创 [Leetcode] Binary Tree Level Order Traversal II

/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ clas

2016-09-28 12:17:33 198

原创 [Leetcode] Symmetric

/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ clas

2016-09-27 11:02:23 231

sscom5.12.1

最新版本的丁丁串口调试助手,支持新行添加,功能强大

2017-02-16

Banana Pi Cookbook.pdf

bananapi的使用教程和案例

2016-05-08

51智能小车避障和循迹程序

基于51单片机的智能小车程序,可以避障和循迹!

2016-05-08

A20_User_Manual_V1.2.pdf

全志A20芯片用户手册

2016-05-08

Banana Pro & Pi User Manual-V1.0.pdf

Banana Pro & Pi User Manual-V1.0.pdf,详细介绍了香蕉派的使用方法

2016-05-08

全志A20芯片手册

全志A20芯片手册

2016-05-08

空空如也

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

TA关注的人

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