摘要: 1、一般情况下,如果使用单一的 character 值,应该使用原始的 char 类型。比如:public class TestCharacter { public static void main(String[] args) { char ch = 'a'; c... 阅读全文
posted @ 2015-10-28 19:05 木易·月 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 汇编程序由三部分组成: 数据段 bss段 文字 数据段: 用于声明初始化数据或常量的数据段,运行时,此数据不改变。 声明数据段的语法: section .data bss段: bss段声明变量。 声明语法: section .bss 文本段: 保存实... 阅读全文
posted @ 2015-10-28 16:46 木易·月 阅读(1454) 评论(0) 推荐(0) 编辑
摘要: 一般系统自带NASM可通过 输入nasm -version 检查,若是没有 可用下述指令安装:sudo apt-get install nasm安装过程执行完毕后 再次输入 : nasm -version 检查是否安装完毕 阅读全文
posted @ 2015-10-28 16:23 木易·月 阅读(636) 评论(0) 推荐(0) 编辑
摘要: Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3, there are a total of 5 unique BST'... 阅读全文
posted @ 2015-10-20 19:00 木易·月 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 网上查了好多方式,试了一下,最简单可行的是:sudo apt-get install build-essential等待执行完,输入 gcc -v输出:Using built-in specs.COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_6... 阅读全文
posted @ 2015-10-18 11:32 木易·月 阅读(811) 评论(0) 推荐(0) 编辑
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo... 阅读全文
posted @ 2015-10-12 23:58 木易·月 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 搬家啦 阅读全文
posted @ 2015-10-11 23:33 木易·月 阅读(89) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu... 阅读全文
posted @ 2015-10-11 00:06 木易·月 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 编译的版本比运行的版本高。两台电脑,一个装的是jdk1.7,另一个是1.8,在1.8上运行之后,上传到github然后1.7的拉下来,再运行出现了上述错误。解决方式:设置如下 阅读全文
posted @ 2015-10-11 00:00 木易·月 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 做LeeCode上的题目,发现关于数组的题目用HashMap后简化运算,包括在之前的工作中,也多次用到HashMap而我对它的了解却不多,现在来总结一下。在算法中的用处,暂时的理解是,当数组中两个数据有联系时,可以将一个存储在HashMap中寻找下一个,public class HashMap ex... 阅读全文
posted @ 2015-10-10 21:57 木易·月 阅读(243) 评论(0) 推荐(0) 编辑