自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

一个不知名码农的专栏

学习ing~喜欢请点赞关注,一起成长一起努力。

  • 博客(6)
  • 资源 (2)
  • 收藏
  • 关注

原创 lintcode:二分查找

二分查找 lintcode二分查找 给定一个排序的整数数组(升序)和一个要查找的整数target,用O(logn)的时间查找到target第一次出现的下标(从0开始),如果target不存在于数组中,返回-1。 样例 在数组 [1, 2, 3, 3, 4, 5, 10] 中二分查找3,返回2。class Solution {public: /** ...

2016-08-30 22:43:24 1036 2

原创 二叉树的所有路径

二叉树的所有路径/** * Definition of TreeNode: * class TreeNode { * public: * int val; * TreeNode *left, *right; * TreeNode(int val) { * this->val = val; * this->left = this-

2016-08-24 00:40:59 373

原创 lintcode:x的平方根

x的平方根lintcode 题目链接class Solution {public: /** * @param x: An integer * @return: The sqrt of x */ int binary_search(long l,long r, long &x){ while(l<=r) {

2016-08-23 22:45:24 426

原创 Reorder array to construct the minimum number

Reorder array to construct the minimum numberlintcode题目链接1.O(n)Log(n)时间复杂度 直接贴代码。class Solution {public: /** * @param nums n non-negative integer array * @return a string */

2016-08-23 14:39:33 777

原创 3 Sum问题

3 Sum 问题题目链接:lintcode 3 sum (http://www.lintcode.com/en/problem/3sum/)基本思路 一会写代码块具体实现如下:class Solution {public: /** * @param numbers : Give an array numbers of n integer * @return

2016-08-03 23:14:02 523

原创 子数组之和

蛮力法时间复杂度O(N2).vector<int> subarraySum(vector<int> nums){ // write your code here vector<int> res; int i,j,sum; for(i=0;i<nums.size();i++) { sum=nums[

2016-08-01 23:31:18 287

Java许巍纪念版时钟程序

Java版时钟程序,带日历和时间。背景图可以根据自己喜好更换。

2016-06-19

httpclient-4.1.4-javadoc

httpclient-4.1.4-javadoc

2016-05-31

空空如也

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

TA关注的人

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