- 博客(8)
- 收藏
- 关注
原创 《深入理解java虚拟机》第二章笔记
1. 运行时数据区域 名称 是否共享 作用 存在的异常 程序计数器 线程私有 如果执行的是java方法,这个计数器记录的是正在执行的虚拟机字节码指令的地址 java虚拟机栈 线程私有 每个方法在执行的同时会创建一个栈帧(局部变量表,操作数栈等),方法的调用过程,对应一个栈帧在虚拟机栈中的出入栈 StackOverflowError,OutofMemor
2018-02-09 11:56:04 241
转载 HDFS原理
1 概述HDFS集群分为两大角色:NameNode、DataNodeNameNode负责管理整个文件系统的元数据(文化的一些信息)DataNode 负责管理用户的文件数据块文件会按照固定的大小(blocksize)切成若干块后分布式存储在若干台datanode上每一个文件块可以有多个副本,并存放在不同的datanode上Datanode会定期向Namenode汇报自身所保存的文件block信息,而...
2018-02-08 11:29:28 398
原创 1003. Emergency
As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the
2018-02-07 20:34:21 144
原创 200.Number of Islands
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assum
2018-02-07 15:42:46 276
原创 51.N-Queens
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-queens puzzle. Each
2018-02-07 14:16:35 105
原创 PAT 甲级1013. Battle Over Cities
It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we nee
2017-02-07 12:52:50 181
原创 算法竞赛入门经典第二章上机以总结
//2-1 题目:输入一个不超过10^9的正整数,输出它的位数。 //例如12735的位数是5。请不要使用任何数学函数,只用四则运算和 //循环语句实现 #include #include int main(int argc, char* argv[]) { int n,k=0; scanf("%d",&n); while(n) { n/=10; k++;
2016-03-14 09:05:01 208
原创 算法竞赛入门经典第一章上机练习(部分)及总结
实验a1 #include int main() { double data1=11111.0*11111.0;//若是整型未溢出 double data2=111111.0*111111.0;//若是整型溢出 double data3=111111111.0*111111111.0;//若是整型溢出 printf("%e\n",data1); printf("%e\n",
2016-03-10 21:51:27 206
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人