上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 80 下一页
摘要: Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni... 阅读全文
posted @ 2014-12-09 14:59 匡子语 阅读(201) 评论(0) 推荐(0)
摘要: Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1 ... 阅读全文
posted @ 2014-12-09 12:46 匡子语 阅读(212) 评论(0) 推荐(0)
摘要: Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i... 阅读全文
posted @ 2014-12-05 16:26 匡子语 阅读(219) 评论(0) 推荐(0)
摘要: A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any point ... 阅读全文
posted @ 2014-12-05 14:44 匡子语 阅读(209) 评论(0) 推荐(0)
摘要: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol... 阅读全文
posted @ 2014-12-05 14:22 匡子语 阅读(205) 评论(0) 推荐(0)
摘要: 由于下载的是hadoop的最新版,网上各种杂七杂八的东西都不适用。好在官网上说的也够清楚了。如果有人看这篇文章的话,最大的忠告就是看官网。官网2.6.0的安装教程:http://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-comm... 阅读全文
posted @ 2014-12-04 22:40 匡子语 阅读(6848) 评论(2) 推荐(0)
摘要: 1、输入ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa其中''里的是登陆的密码,因为要设置免密码,所以''里是什么都没有的,空格也不行2、输入 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys3、输入 ssh -vers... 阅读全文
posted @ 2014-12-03 16:16 匡子语 阅读(870) 评论(0) 推荐(0)
摘要: 1、在http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html下载最新版的rpm文件,我的是x86系统就下图中的第一个下载后拖到linux虚拟机里。2、运行 rpm -ivh jdk-8u2... 阅读全文
posted @ 2014-12-03 16:11 匡子语 阅读(843) 评论(1) 推荐(1)
摘要: 鸟哥 22章内容单个源代码编译运行设有一个hello.c 可以用下面方式运行 生成可执行文件a.out[localhost scripts]$ gcc hello.c [localhost scripts]$ ll hello.c a.out[localhost scripts]$ ./a.outH... 阅读全文
posted @ 2014-12-03 10:09 匡子语 阅读(231) 评论(0) 推荐(0)
摘要: A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message conta... 阅读全文
posted @ 2014-12-02 21:16 匡子语 阅读(315) 评论(0) 推荐(0)
上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 80 下一页