码迷,mamicode.com
首页 > 其他好文
枚举变量用法
1 namespace PV 2 { 3 public enum SaddleType 4 { 5 Draw1 = 1, 6 Draw2, 7 Draw3, 8 Draw4, 9 Draw5,10 ...
分类:其他好文   时间:2014-12-03 23:06:58    阅读次数:185
BZOJ1864 [Zjoi2006]三色二叉树
简单地树形DP我们用f,g表示最大、最小值,0,1,2表示颜色然后直接推递推公式请见程序233 1 /************************************************************** 2 Problem: 1864 3 User: raus...
分类:其他好文   时间:2014-12-03 23:08:41    阅读次数:284
隐藏的几种实现
页面布局上隐藏,但是对屏幕阅读器可见的几种方式: 1, .h{position:relative; left:-900em;top:-900em;} 2, .h{position:absolute; clip:rect(1px 1px 1px 1px)} //采用clip必须对该元素进行绝对定位.....
分类:其他好文   时间:2014-12-03 23:07:37    阅读次数:186
[LeetCode] Longest Common Prefix 字符串公有前序
Write a function to find the longest common prefix string amongst an array of strings.Hide TagsString 这是一道很简单的题目,判断输入的多个字符串的公有前序,简单的逻辑遍历查找就好。算法流程:判断输....
分类:其他好文   时间:2014-12-03 23:07:15    阅读次数:99
hdoj 1385Minimum Transport Cost
卧槽。。。。最近刷的cf上有最短路,本来想拿这题复习一下。。。。题意就是在输出最短路的情况下,经过每个节点会增加税收,另外要字典序输出,注意a到b和b到a的权值不同然后就是处理字典序的问题,当松弛时发现相同值的时候,判断两条路径的字典序代码#include "stdio.h"const int MA...
分类:其他好文   时间:2014-12-03 23:06:48    阅读次数:212
ClientScript.RegisterStartupScript()与ScriptManager.RegisterStartupScript()
page类:1、页头中inherits标识继承于哪个类。partial标识局部的,类的一部分,编译的时候 把同名的partial合并成一个完整的class文件,然后编译成中间文件。2、.net页面的生命周期,控件的生命周期,生命周期的应用。页面-属性-document-trace设为true,运行页...
分类:其他好文   时间:2014-12-03 23:07:16    阅读次数:164
菜鸟nginx源码剖析数据结构篇(九) 内存池ngx_pool_t[转]
菜鸟nginx源码剖析数据结构篇(九) 内存池ngx_pool_tAuthor:Echo Chen(陈斌)Email:chenb19870707@gmail.comBlog:Blog.csdn.net/chen19870707Date:Nov 11th, 2014今天是一年一度的光棍节,还没有女朋友...
分类:其他好文   时间:2014-12-03 23:08:23    阅读次数:334
vs2010中的ADO控件及绑定控件
要在项目中添加某一个ActiveX控件,则该ActiveX控件必须要注册。由于VS2010中,并没有自动注册ADO及ADO数据绑定控件(Microsoft ADO Data Control,Microsoft DataCombo等),参考http://msdn.microsoft.com/zh-cn...
分类:其他好文   时间:2014-12-03 23:05:05    阅读次数:408
leetcode. Insertion Sort List
Sort a linked list using insertion sort.链表的插入排序,算法可参看数组插入排序,不同之处在于查找插入点时,链表要从前往后查找。代码如下: 1 ListNode *insertionSortList(ListNode *head) 2 { 3 ...
分类:其他好文   时间:2014-12-03 23:07:23    阅读次数:155
String和数字之间的转化
主要是JDK的代码,还是比较的经典,值得一看,例如: package alg; /** * @author zha 字符串之间的转化 */ public class Alg3StringToint { /** * @param args */ public static void main(Stri...
分类:其他好文   时间:2014-12-03 23:04:50    阅读次数:292
ABAP OO 开发语法整理
【转自 http://blog.csdn.net/saphome/article/details/6956933】在类中,只能用TYPE 附加关键字指定数据类型。?TYPES: 一般的类型定义方法?CONSTANTS: 一般的常数定义方法只能用LIKE 引用本地数据对象。?DATA: var1 TY...
分类:其他好文   时间:2014-12-03 23:05:23    阅读次数:231
[Leetcode] Binary Tree Maximum Path Sum
这是LeetCode上的一道题目,需要求二叉树中两点路径的最大和。原题是https://oj.leetcode.com/problems/binary-tree-maximum-path-sum/Given a binary tree, find the maximum path sum.The p...
分类:其他好文   时间:2014-12-03 23:05:58    阅读次数:226
Search Insert Position
题目:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in...
分类:其他好文   时间:2014-12-03 23:06:05    阅读次数:176
leetcode. Linked List Cycle && Linked List Cycle ii
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?使用双指针fast和slow,fast每次走两步,slow每次走一步,如果fast追...
分类:其他好文   时间:2014-12-03 23:04:47    阅读次数:287
OpenCASCADE Camera
Abstract. OpenCASCADE introduce a new class Graphic3d_Camera for the Visualization module. The camera class provides object-oriented approach to setti...
分类:其他好文   时间:2014-12-03 23:05:37    阅读次数:425
LeetCode: Combination Sum II 解题报告
Combination Sum IIGiven a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers s...
分类:其他好文   时间:2014-12-03 23:05:22    阅读次数:328
NPC问题
研一是密码学专业开的一门课《计算复杂性理论》,当时对立面的NP,NPC这些概念都挺模糊,后来也是不了了之。现在看一些密码学论文的时候经常遇到这一概念,只能硬着头皮搞清楚。下面把自己的理解写下来,一来加深记忆和理解,而来为以后做个储备。 问题分为两种,一种是可以通过明确的公式直接得到答案,比如:...
分类:其他好文   时间:2014-12-03 23:04:29    阅读次数:232
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!