自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 Node.js+MongoDB+Express网站开发(一):使用Ping++SDK接入支付功能

前言:        最近一直在用node开发网页,也实现了一些小功能,一直想写下来。之前的以后再写,先把刚刚实现的功能写下来,也算是一种经验总结吧!-------------------------------------------------------------------------------------------------------------------------

2015-11-14 01:32:48 2014

原创 解决mysql5.6无法显示和插入中文(mac/linux)

系统:Mac OS X 10.11mysql:mysql-5.6.26-osx10.8-x86_64GUI:Mysql Workench 6.3原因在于mysql的编码方式。显示mysql编码方式:show variables like 'character%';改成像我这样的应该就可以显示和插入中文了。在网上搜了一下有很多大同小异的解决办法。这里我把适用于我的

2015-10-17 13:26:59 3142

原创 解决Bochs调试时软盘无法加载的问题

看看你的软盘是不是大于1440kb,超过了貌似就不能加载,可以删去软盘中多余的0使其小于1440kb.

2015-05-15 10:56:06 872

转载 mac下使用inode客户端上网无法开启互联网共享的解决办法

请查看网络设置,如果ipv6开启可能会有问题;选择“仅本地连接”即可。

2015-05-02 00:20:55 1422

原创 1011. Find the external path length

DescriptionGiven the linked representation of binary treestypedef int T;struct BinaryNode{T data; //store data BinaryNode *left, *right;BinaryNode(T d, BinaryNode *l=NULL, BinaryNode*

2015-01-13 21:02:04 558

原创 1010. bracket matching

DescriptionImplement the following function that decides if a list of brackets match.bool brackets(string s);/*The input s is a list of brackets, including {,},(,),[,], and possibly blanks.

2015-01-12 22:08:33 566

原创 1007. Find the middle element in a Linked List

DescriptionAssuming the following definition:template struct Node {   Node_entry entry;   Node *next;   Node();   Node(Node_entry item, Node *add_on = NULL);};template Node::Node(

2015-01-11 21:51:40 566

原创 1006. Join two lists

Descriptionlist join(const  list &a, const list &b)//returns a list of distinct integers both in a and b. For example, a = (3,4,3,5); b = (2,3,2,12,4,4), then c = (3,4). or c = (4,3).  The ord

2015-01-11 21:43:55 313

原创 1005. 业绩排名

Description年末公司将职员按照业绩从大到小排序后分配奖金。假定输入是职员姓名以及业绩, 业绩是正整数。请你按照职员业绩从高到低将职员排序,业绩相同时按照输入先后次序排序。输出是排序后的名次和职员姓名列表, 业绩相同时,名次相同。例如,输入: (wang ming, 320), (gao min, 330), (zhang li, 280), (luo yan, 320

2015-01-11 21:35:30 562

原创 1004. Hashing

DescriptionImplement the following Hash class using separate chaining.template class HashTable{  public:     HashTable(int (* h)(HashedObj x), int size = 101 )      : currentSize( 0

2015-01-11 20:49:40 526

原创 1003. Width of Binary Trees

DescriptionThe maximum number of nodes in all levels in a binary tree is called the width of the tree. For example, the binary tree on the right in the following figure has width 4 because the max

2015-01-11 20:41:30 617

原创 1002. Is It Acyclic

DescriptionGiven a directed graph, decide if it is acyclic (there is no directed cycle).InputThere are multiple test cases. The first line contains an integer T, indicating the number of

2015-01-11 20:29:43 343

原创 1001. Bacon Number

DescriptionThe Bacon number of an actor is the number of degrees of separation he or she has from Bacon. For example, Tom Hanks has a Bacon number 1, because he was in Apollo 13 with Kevin Bacon.

2015-01-10 21:39:16 694

原创 1000. Minimum Weight

DescriptionGiven a list of weights w1, w2, ..., wn, we can construct a binary tree with n leaves, where each leaf is marked with one weight. The is called a weighted binary tree. The weight of t

2015-01-10 21:28:09 451

空空如也

空空如也

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

TA关注的人

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