码迷,mamicode.com
首页 > 其他好文
[LOJ 1008] Fibsieve`s Fantabulous Birthday
A -Fibsieve`s Fantabulous BirthdayTime Limit:500MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionFibsieve had a fantabulous (yes, it's an a...
分类:其他好文   时间:2015-03-20 01:20:25    阅读次数:264
Prime Ring Problem
Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 30395Accepted Submission(s): 13525Problem Descript...
分类:其他好文   时间:2015-03-20 01:18:14    阅读次数:120
Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2015-03-20 01:17:25    阅读次数:138
Bell(矩阵快速幂+中国剩余定理)
BellTime Limit:3000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4767Appoint description:DescriptionWhat? MMM is learning...
分类:其他好文   时间:2015-03-20 01:18:14    阅读次数:241
黑马程序员----内存管理之五《ARC-自动引用计数》
------- android培训、java培训、期待与您交流! ----------内存管理之五《ARC-Automatic Reference Counting》1.ARC概念ARC是Automatic Reference Counting---自动引用计数。ARC是一种编译器特性,并不是jav...
分类:其他好文   时间:2015-03-20 01:17:33    阅读次数:204
【原创】poj ----- 1182 食物链 解题报告
题目地址:http://poj.org/problem?id=1182题目内容:食物链Time Limit:1000MSMemory Limit:10000KTotal Submissions:48791Accepted:14222Description动物王国中有三类动物A,B,C,这三类动物的食...
分类:其他好文   时间:2015-03-20 01:17:25    阅读次数:146
LeetCode – Refresh – Generate Parentheses
Nothing fancy, just use recursive. 1 class Solution { 2 public: 3 void getP(vector &result, string current, int left, int right) { 4 if (l...
分类:其他好文   时间:2015-03-20 01:16:21    阅读次数:113
CoffeeScript 入门笔记
写在前面:被英文版指南坑了...闹了很久才明白.coffee怎么用。安装前需要有稳定版Node.js, 和npm(Node Package Manager). 借助 npm 可以安装 CoffeeScript。安装之后, 运行coffee命令 'coffee -c xxx.coffee' 以执行脚本...
分类:其他好文   时间:2015-03-20 01:18:29    阅读次数:188
指针的总结一(指针的定义)
指针的实质就是地址,指针的变量就是用来存放地址的变量;指针有一级指针和二级指针之分。一.一级指针的介绍1.指针变量的定义格式如下:数据类型*指针变量名 int*p;(p为指针变量名,类型为int) char*ch;(ch为指针变量名,类型为char) …… ...
分类:其他好文   时间:2015-03-20 01:15:00    阅读次数:194
IIS7中的站点、应用程序和虚拟目录详细介绍 (转)
这里说的不是如何解决路径重写或者如何配置的问题,而是阐述一下站点(site),应用程序(application)和虚拟目录 (virtual directory)概念与作用,已及这三个东西在IIS6与IIS7中的异同。因为站点,应用程序和虚拟目录是我们在IIS上架设网站时肯定会遇到的, 但它们的概....
分类:其他好文   时间:2015-03-20 01:17:46    阅读次数:196
list 转换成datatable
感谢网上的一位朋友 1 /// 2 60 /// 将集合类转换成DataTable 3 61 /// 4 62 /// 集合 5 63 /// 6 64 public static DataTab...
分类:其他好文   时间:2015-03-20 01:14:56    阅读次数:157
[LeetCode] Restore IP Addresses 回溯
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:其他好文   时间:2015-03-20 01:15:53    阅读次数:186
Entity Framework 实体框架的形成之旅--Code First的框架设计(5)
在前面几篇介绍了Entity Framework 实体框架的形成过程,整体框架主要是基于Database First的方式构建,也就是利用EDMX文件的映射关系,构建表与表之间的关系,这种模式弹性好,也可以利用图形化的设计器来设计表之间的关系,是开发项目较多采用的模式,不过问题还是这个XML太过复杂...
分类:其他好文   时间:2015-03-20 01:14:24    阅读次数:237
ccf认证模拟题之三---最大的矩形
问题描述在横轴上放了n个相邻的矩形,每个矩形的宽度是1,而第i(1 ≤ i ≤ n)个矩形的高度是hi。这n个矩形构成了一个直方图。例如,下图中六个矩形的高度就分别是3, 1, 6, 5, 2, 3。请找出能放在给定直方图里面积最大的矩形,它的边要与坐标轴平行。对于上面给出的例子,最大矩形如下图所示...
分类:其他好文   时间:2015-03-20 01:15:21    阅读次数:271
LeetCode – Refresh – Implement strStr()
Brute Force: 1 class Solution { 2 public: 3 int strStr(char *haystack, char *needle) { 4 if (!haystack) return -1; 5 if (!needle) ...
分类:其他好文   时间:2015-03-20 01:13:34    阅读次数:110
poj 3468 A Simple Problem with Integers 线段树
这道题属于线段树的区间修改给出一个序列,对其进行Q次操作,"Cabc" means addingcto each ofAa,Aa+1, ... ,Ab. -10000 ≤c≤ 10000."Qab" means querying the sum ofAa,Aa+1, ... ,Ab.注意,这道题.....
分类:其他好文   时间:2015-03-20 01:13:14    阅读次数:171
LeetCode – Refresh – Gas Station
Not quite hard. Just remember initialize index to 0. Because if you initialize it as -1 and all the gas satisfy the cost, it will return -1.Actually, ...
分类:其他好文   时间:2015-03-20 01:11:41    阅读次数:210
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!