风陵渡口
码龄12年
求更新 关注
提问 私信
  • 博客:69,323
    69,323
    总访问量
  • 113
    原创
  • 3
    粉丝
  • 0
    关注
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:北京市
加入CSDN时间: 2013-06-07

个人简介:hi

博客简介:

u010993983的专栏

查看详细资料
个人成就
  • 获得7次点赞
  • 内容获得2次评论
  • 获得18次收藏
  • 博客总排名1,280,860名
创作历程
  • 115篇
    2014年
  • 2篇
    2013年
成就勋章
TA的专栏
  • 绿色数据中心
    1篇
  • 数据中心电源系统
    1篇
  • CUDA编程实践
    1篇
  • 算法
    6篇
  • linux
    2篇
  • 2015校招笔试面试
    5篇
  • c++
  • leetcode
    86篇
  • 数据库
    1篇
  • 开发环境
    2篇
  • java
    4篇
  • CloudSim
    2篇
  • 架构设计
  • 开源工具
    1篇
  • 操作系统
    1篇

TA关注的专栏 0

TA关注的收藏夹 0

TA关注的社区 0

TA参与的活动 0

创作活动更多

新星杯·14天创作挑战营·第13期

这是一个以写作博客为目的的创作活动,旨在鼓励大学生博主们挖掘自己的创作潜能,展现自己的写作才华。如果你是一位热爱写作的、想要展现自己创作才华的小伙伴,那么,快来参加吧!我们一起发掘写作的魅力,书写出属于我们的故事。我们诚挚邀请你们参加为期14天的创作挑战赛!注: 1、参赛者可以进入活动群进行交流、互相鼓励与支持(开卷),虚竹哥会分享创作心得和涨粉心得,答疑及活动群请见:https://bbs.csdn.net/topics/619781944 【进活动群,得奖概率会更大,因为有辅导】 2、文章质量分查询:https://www.csdn.net/qc

90人参与 去参加
  • 最近
  • 文章
  • 专栏
  • 代码仓
  • 资源
  • 收藏
  • 关注/订阅/互动
更多
  • 最近

  • 文章

  • 专栏

  • 代码仓

  • 资源

  • 收藏

  • 关注/订阅/互动

  • 社区

  • 帖子

  • 问答

  • 课程

  • 视频

搜索 取消

XML转JSON

依赖的包:org.json.jar,commons-io-2.2.jar获取xml文件的InputStream is,使用IOUtils把is转成String。调用XML的toJSONObject方法获取JSON对象。import org.apache.commons.io.IOUtils;import org.json.*;InputStream
原创
博文更新于 2014.10.10 ·
843 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

数据中心的分布式UPS系统

传统的集中式UPS系统有以下弊端:1. 单点失效。数据中心的关键负载对电源可靠性有很高的的要求。然而,集中式的UPS设计可能会因为UPS故障而造成数据中心的计算负载掉电。2.备用UPS增加了系统的成本。如图2-(a),为了减小单点失效的风险,备用UPS系统与主UPS并联提供冗余UPS电源,但同时也使得UPS系统的成本增加了一倍。3.制约了数据中心的扩展。随着互联网时代数据的爆炸式增长,
原创
博文更新于 2013.11.17 ·
2496 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

SDL实现生产者消费者

环境:阿里云主机CPU: 1核     内存: 1GB    数据盘:  20G操作系统: Ubuntu 12.04 64位 1.       SDL安装[root@iZ25ml7xjj1Z:/usr/lixian]$sudo aptitude install libsdl1.2debian 2.       生产者消费者源代码
原创
博文更新于 2014.11.03 ·
1171 阅读 ·
1 点赞 ·
0 评论 ·
6 收藏

3Sum

Problem:Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:Elements in a tr
原创
博文更新于 2014.10.27 ·
425 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Generate Parentheses

Problem:Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:"((()))", "(()())", "(())()", "
原创
博文更新于 2014.10.25 ·
485 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Merge k Sorted Lists

Problem:Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.采用分治来做。两两合并链表,直到只剩下1个链表。时间复杂度为O(m*n*log(n)),而顺序合并的时间复杂度为O(m*n^2)。Solution:
原创
博文更新于 2014.10.24 ·
448 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Implement strStr()

Problem:Implement strStr().Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack.我实现了Boyer-Moore算法,效果非常好,12ms就跑下来了。BM算法的效率非常高,优于KMP算法。算
原创
博文更新于 2014.10.23 ·
438 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Search for a Range

Problem:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the order of O(log n).If the target
原创
博文更新于 2014.10.15 ·
415 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Search Insert Position

Problem:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates
原创
博文更新于 2014.10.15 ·
404 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Sudoku Solver

Problem:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will be only one unique solution.
原创
博文更新于 2014.10.15 ·
499 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Count and Say

Problem:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read off as "two 1s" or 21.21 i
原创
博文更新于 2014.10.14 ·
441 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Combination Sum II

Problem:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each number in C may only be used once 
原创
博文更新于 2014.10.14 ·
451 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Nutch+Lucene搜索引擎开发实践

使用开源工具Nutch和Lucene在局域网下搭建垂直搜索引擎。
原创
博文更新于 2014.10.14 ·
3016 阅读 ·
0 点赞 ·
0 评论 ·
9 收藏

UML类图与类的关系详解

UML类图与类的关系详解在画类图的时候,理清类和类之间的关系是重点。类的关系有泛化(Generalization)、实现(Realization)、依赖(Dependency)和关联(Association)。其中关联又分为一般关联关系和聚合关系(Aggregation),合成关系(Composition)。下面我们结合实例理解这些关系。基本概念
转载
博文更新于 2014.10.14 ·
540 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Combination Sum

Problem:Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C 
原创
博文更新于 2014.10.13 ·
546 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

京东2015校招笔试编程题

这道题就是丑数问题,在《剑指Offer》一书的182页有详细讨论。简单来说,就是:新的丑数总是以前的某个丑数乘以2、3或5产生,那么分别用三个指针p2、p3和p5指向乘以2、3和5后能生成新的丑数的丑数,那么下一个丑数就是它们生成的新的丑数中最小的一个。public static int KthNumber(int k){    int[] uglyNumbers = new
原创
博文更新于 2014.10.11 ·
890 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

First Missing Positive

Problem:Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm should run in O(n) time and
原创
博文更新于 2014.10.11 ·
392 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Trapping Rain Water

Problem:Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.For example, Given [0,1,0,2,1,
原创
博文更新于 2014.10.10 ·
443 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Multiply Strings

Problem:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-negative.   大数乘法,通常采用的是模拟手工计算的方法,时
原创
博文更新于 2014.10.10 ·
375 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

JSON解析工具-org.json使用教程

一、简介 org.json是Java常用的Json解析工具,主要提供JSONObject和JSONArray类,现在就各个类的使用解释如下。 二、准备 1.在使用org.json之前,我们应该先从该网址https://github.com/douglascrockford/JSON-java下载org.json源码,并将源码其加入到Eclipse中,
转载
博文更新于 2014.10.10 ·
461 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多