【070-Climbing Stairs(爬楼梯)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct...
分类:
编程语言 时间:
2015-08-03 07:50:48
阅读次数:
177
Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl...
分类:
其他好文 时间:
2015-08-03 01:04:34
阅读次数:
104
如果直接用ps命令,会显示所有进程的状态,通常结合grep命令查看某进程的状态。如果想对进程时间监控,应该用 top 工具。下面主要介绍下ps指令。linux进程状态在Linux中,进程存在5中状态
运行状态(正在运行或在运行队列中等待)
中断状态(休眠中, 受阻, 在等待某个条件的形成或接受到信号)
不可中断(收到信号不唤醒和不可运行, 进程必须等待直到有中断发生)
僵死状态(进程已终止, 但进程...
分类:
系统相关 时间:
2015-08-02 23:25:40
阅读次数:
313
Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top()...
分类:
其他好文 时间:
2015-08-02 21:24:47
阅读次数:
121
Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right corner as shown ...
分类:
其他好文 时间:
2015-08-02 21:19:57
阅读次数:
108
#include#include#includetypedef struct _stack{ int* arr; int top, size;}stack;stack createStack(int size){ stack st; st.arr = (int*)malloc(size*sizeof...
分类:
其他好文 时间:
2015-08-02 19:45:41
阅读次数:
108
select top 100 --每页显示数据记录数contractid,contractName from (select ContractId,ContractName,ROW_NUMBER() over(order by contractname desc) as rownum from .....
分类:
其他好文 时间:
2015-08-02 19:42:20
阅读次数:
139
代码:#include
#include
using namespace std;
int n,m;
int mat[105][105];
int in[105];
int Stack[105],top;
void topo()
{
top=0;
for(int i=0; i<n; i++)
{
if(in[i]==0)
{
...
分类:
其他好文 时间:
2015-08-02 16:56:26
阅读次数:
122
You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you cli...
分类:
其他好文 时间:
2015-08-02 16:25:34
阅读次数:
125
图片画廊 今天分享一个自己实现的jQuery 图片画廊插件。 看一下效果图: 点击图片时: 在线演示地址:http://www.jr93.top/photoGallery/photoGallery.html 使用 使用也是很简单,代码如下: ...
分类:
Web程序 时间:
2015-08-02 15:01:56
阅读次数:
136