码迷,mamicode.com
首页 > 其他好文
Dream------scala--类的属性和对象私有字段实战详解
Scala类的属性和对象私有字段实战详解
分类:其他好文   时间:2015-08-17 23:30:31    阅读次数:199
Bootstrap兼容处理
接将一下代码引用到页面 之前
分类:其他好文   时间:2015-08-17 23:26:55    阅读次数:108
Visuall Studio Help 安装方法
VS2010正式版不再有单独的MSDN Library安装包,VS2010的ISO安装光盘里已经包含有MSDN Library,手动安装步骤如下:1、启动Visual studio 2010应用程序,选择【帮助】->【管理帮助设置】弹出“Help Library 管理器”。2、点击Help Libr...
分类:其他好文   时间:2015-08-17 23:28:23    阅读次数:235
WAMP虚拟主机配置
WAMP2.5的虚拟主机配置
分类:其他好文   时间:2015-08-17 23:27:14    阅读次数:107
洛谷1514 引水入城
{好遗憾啊,这个题只能过五个点,三个WA,两个TLE,不知道为什么……望大神赐教}题目描述在一个遥远的国度,一侧是风景秀美的湖泊,另一侧则是漫无边际的沙漠。该国的行政区划十分特殊,刚好构成一个N 行M 列的矩形,如上图所示,其中每个格子都代表一座城市,每座城市都有一个海拔高度。为了使居民们都尽可能饮...
分类:其他好文   时间:2015-08-17 23:26:28    阅读次数:302
(求树的直径)Warm up -- HDU -- 4612
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4612给一个无向图, 加上一条边后,求桥至少有几个;那我们加的那条边的两个顶点u,v;一定是u,v之间含有桥的数量最多,然后uv之间的桥都没了,剩下的就是要求的结果;树的直径的定义刚好就是两个节点之间含有...
分类:其他好文   时间:2015-08-17 23:27:49    阅读次数:132
HashSet源码分析
由哈希表实现,实际底层为HashMap。public HashSet(Collection c) { map = new HashMap(Math.max((int) (c.size()/.75f) + 1, 16)); addAll(c); }public HashSet...
分类:其他好文   时间:2015-08-17 23:26:29    阅读次数:172
TreeMap源码分析
TreeMap继承关系,和HashMap同继承于AbstractMap,属于兄弟关系。public class TreeMap extends AbstractMap implements NavigableMap, Cloneable, java.io.Serializable-1. ...
分类:其他好文   时间:2015-08-17 23:27:48    阅读次数:173
HDU 5001-Walk(概率dp)
题意:给你一个图,求在长度为d的所有路径,不经过每个结点的概率分析:枚举每个结点,正推求概率#include #include #include #include #include #include #include #include #include #include #include #incl...
分类:其他好文   时间:2015-08-17 23:25:52    阅读次数:148
Algorithm --> 小于N的正整数含有1的个数
//https://leetcode.com/problems/number-of-digit-one/Given an integer n, count the total number of digit 1 appearing in all non-negative integers less ...
分类:其他好文   时间:2015-08-17 23:24:33    阅读次数:136
Markdown
title1 多级标题title2title3title4title5title6markdown 允许六级标题,分别在行的起始处使用1到6个。为了保持美观可以在#和标题之间留下空格。转义就像C中printf函数中的\n \a 那样,因为n和a已经有自己本身的含义了,故加上斜杆将其转义。 在mark...
分类:其他好文   时间:2015-08-17 23:25:53    阅读次数:186
[2-sat]HDOJ1824 Let's go home
中问题 题意略和HDOJ 3062 一样这里 每个队员都有 选 和 不选 两种, 即 上篇所说的$x$和$x’$建图:队长(a)留下或者其余两名队员(b、c)同时留下 那么就是$a'\Rightarrow b$ 、 $a'\Rightarrow c$ (队长不在 b必须在, 队长不在 c必须在...
分类:其他好文   时间:2015-08-17 23:25:55    阅读次数:194
hdu 4920 Matrix multiplication (矩阵乘法)
Problem DescriptionGiven two matrices A and B of size n×n, find the product of them.bobo hates big integers. So you are only asked to find the result ...
分类:其他好文   时间:2015-08-17 23:25:56    阅读次数:129
[LeetCode] Word Search II
A simple combination of Implement Trie (Prefix Tree) and Word Search. If you've solved them, this problem will become easy :-)The following code is ba...
分类:其他好文   时间:2015-08-17 23:24:14    阅读次数:150
Merge Sorted Array
Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may assume thatnums1has enough space (size that is great...
分类:其他好文   时间:2015-08-17 23:23:50    阅读次数:169
20150817---成长日记1---DelayQueue&&Delayed&&Other
今天第一次接触DelayQueue,源于项目中的话单解析入库的拆分线程中引入,首先简单了解一下DelayQueue:DelayQueue是一个无界阻塞队列,只有在延迟期满时才能从中提取元素。该队列的头部是延迟期满后保存时间最长的Delayed 元素。 问题1:如何来判断延迟期是否满了呢? --...
分类:其他好文   时间:2015-08-17 23:24:30    阅读次数:156
[LeetCode] Implement Trie (Prefix Tree)
You need to understand what a Trie is before writing the code :-) This link has a nice solution, whose code is rewritten below. 1 class TrieNode { 2 p...
分类:其他好文   时间:2015-08-17 23:23:23    阅读次数:191
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!