Question:
So lets say I have a struct like this:
struct example_structure
{
int thing_one;
int thing_two;
};
I also have an empty array which I am trying to fill with these structs. I am tryin...
分类:
其他好文 时间:
2015-03-31 09:03:07
阅读次数:
109
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get...
分类:
其他好文 时间:
2015-03-30 18:55:43
阅读次数:
104
Two elements of a binary search tree (BST) are swapped by mistake.
Recover the tree without changing its structure.
#include
#include
#include
using namespace std;
struct TreeNode {
int val;...
分类:
其他好文 时间:
2015-03-30 11:24:41
阅读次数:
121
Problem Description
XX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure---超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed,同时XX星人对 Flycar的“舒适度”有特殊要求,即乘坐过程中最高速度与最低速度的差越小乘坐越舒服 ,(理解为SARS的限速要求,flycar必须瞬间提速/降速,痛苦呀 ),
但XX星人对时间却没那么多要求。要你找出一条城市间的最舒适的路径。(SARS是双向的)。
...
分类:
其他好文 时间:
2015-03-29 12:21:31
阅读次数:
150
redis是什么:Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain st...
分类:
其他好文 时间:
2015-03-29 10:40:38
阅读次数:
378
【原】storm源码之storm代码结构【译】说明:本文翻译自Storm在GitHub上的官方Wiki中提供的Storm代码结构描述一节Structure of the codebase,希望对正在基于Storm进行源码级学习和研究的朋友有所帮助。Storm的源码共分为三个不同的层次。首先,Stor...
分类:
其他好文 时间:
2015-03-28 23:11:22
阅读次数:
218
学习前端的过程中到处充斥着Web标准、可用性、可访问性这些词,那么到底它们指的是什么呢?一、什么是Web标准 简单的说,Web标准就是我们在学习前端中接触最多的HTML、CSS、JavaScript三者的集合。网页主要分三个部分:结构(Structure)、表现(Presentation)、行为(....
分类:
Web程序 时间:
2015-03-21 15:33:03
阅读次数:
153
【题目】
Two elements of a binary search tree (BST) are swapped by mistake.
Recover the tree without changing its structure.
Note:
A solution using O(n)
space is pretty straight forward. Could...
分类:
其他好文 时间:
2015-03-21 12:42:54
阅读次数:
129
http://www.cnblogs.com/me-sa/archive/2012/01/10/erlang0030.htmlSupervisors are used to build an hierarchical process structure called a supervision tr...
分类:
其他好文 时间:
2015-03-20 16:20:06
阅读次数:
207
Problem Description
There is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical structure of employees. It means that the supervi...
分类:
其他好文 时间:
2015-03-19 22:02:07
阅读次数:
105