摘要: 1.Reverse String Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 1. 可以直接用Str 阅读全文
posted @ 2017-11-07 15:09 dreamOnly 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 2.1 数学基础 1. 掌握O(N)的概念 2. 在需要大O表示的任何分析中,各种简化都是可能发生的,低阶项一般都会被自动忽略,常数也可以弃掉 2.2 模型 1. 对模拟机做的假设: 1. 模拟机做任何一件简单的工作(加法,减法,赋值,比较)都恰好花费一个时间单元 2. 模拟机有无限的内存,不会发生 阅读全文
posted @ 2017-11-07 10:45 dreamOnly 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wo 阅读全文
posted @ 2017-11-06 20:10 dreamOnly 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1.1 本书讨论的内容 示例1:设有一组数,要确定其中第k个最大值 示例2:解决字谜问题。 1.2 数学知识复习 1.2.1 指数 1.2.2 对数 1.2.3 级数 1.2.4 模运算 1.3 递归简论 示例1:斐波那契数列 示例2:打印输出数 四条基本原则: 1. 基准情形 2. 不断推进 3. 阅读全文
posted @ 2017-11-06 17:03 dreamOnly 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 45. Single Number 在个数都为2的数组中找到个数为1的数 46. Missing Number 在数组中找到从0到n缺失的数字 47. Find the Difference 找两个字符串总t中多出来的那个字符 48. Linked List Cycle 判断一个链表是否有环 49. 阅读全文
posted @ 2017-09-19 20:12 dreamOnly 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 35. Same Tree 判断两棵树相同 36. Invert Binary Tree 翻转树 37. Symmetric Tree 判断树是不是镜像对称的 38. Maximum Depth of Binary Tree 最大深度 39. Minimum Depth of Binary Tree 阅读全文
posted @ 2017-09-19 09:49 dreamOnly 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 28. Best Time to Buy and Sell Stock 买卖股票的最好时间 29. Best Time to Buy and Sell Stock II 买卖股票2(多次买入,一次卖出)最大利润 30. Length of Last Word 最后一个单词的长度 31. Plus O 阅读全文
posted @ 2017-09-15 10:11 dreamOnly 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 感觉还好,坚持住就行,毕竟智商不够 1. Length of Last Word求一个数组的最后一个单词的长度 2. Plus One 大数加1 3. Add Binary 二进制加法 4. Sqrt(x) 求一个数的开方 5. Valid Perfect Square 求正方形的边的长度 6. S 阅读全文
posted @ 2017-09-13 09:07 dreamOnly 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1. 下载hue包 下载后移动到Linux下,解压缩 2. 安装依赖包 3. 安装 Oracle's JDK 因为在之前jdk都配置过了,所以不需要配置这个 4. 安装 mvn 也就是maven,FQ出去看官方apache-maven安装过程,如果看不了,这个 5. 安装 libtidy 用来单元测 阅读全文
posted @ 2017-08-23 22:18 dreamOnly 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 一、 hbase的原理知识 1. hbase介绍 hbase是hadoop的一个重要成员,主要用于存储结构化数据,构建在hdfs之上的分布式存储系统,它主要通过横向扩展,通用不断增加廉价服务器增加计算和存储能力。 2. hbase的特点 1. 大:一个表可以有数十亿行,上百万列; 2. 无模式:每行 阅读全文
posted @ 2017-08-07 13:32 dreamOnly 阅读(262) 评论(0) 推荐(0) 编辑