首页 > 其他
【原创】poj ----- 1182 食物链 解题报告
题目地址:http://poj.org/problem?id=1182题目内容:食物链Time Limit:1000MSMemory Limit:10000KTotal Submissions:48791Accepted:14222Description动物王国中有三类动物A,B,C,这三类动物的食...
分类:其他   时间:2015-03-20 01:16:22    收藏:0  评论:0  赞:0  阅读:249
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:15:42    收藏:0  评论:0  赞:0  阅读:269
CoffeeScript 入门笔记
写在前面:被英文版指南坑了...闹了很久才明白.coffee怎么用。安装前需要有稳定版Node.js, 和npm(Node Package Manager). 借助 npm 可以安装 CoffeeScript。安装之后, 运行coffee命令 'coffee -c xxx.coffee' 以执行脚本...
分类:其他   时间:2015-03-20 01:15:12    收藏:0  评论:0  赞:0  阅读:350
指针的总结一(指针的定义)
指针的实质就是地址,指针的变量就是用来存放地址的变量;指针有一级指针和二级指针之分。一.一级指针的介绍1.指针变量的定义格式如下:数据类型*指针变量名 int*p;(p为指针变量名,类型为int) char*ch;(ch为指针变量名,类型为char) …… ...
分类:其他   时间:2015-03-20 01:14:52    收藏:0  评论:0  赞:0  阅读:261
IIS7中的站点、应用程序和虚拟目录详细介绍 (转)
这里说的不是如何解决路径重写或者如何配置的问题,而是阐述一下站点(site),应用程序(application)和虚拟目录 (virtual directory)概念与作用,已及这三个东西在IIS6与IIS7中的异同。因为站点,应用程序和虚拟目录是我们在IIS上架设网站时肯定会遇到的, 但它们的概....
分类:其他   时间:2015-03-20 01:14:32    收藏:0  评论:0  赞:0  阅读:385
list 转换成datatable
感谢网上的一位朋友 1 /// 2 60 /// 将集合类转换成DataTable 3 61 /// 4 62 /// 集合 5 63 /// 6 64 public static DataTab...
分类:其他   时间:2015-03-20 01:14:12    收藏:0  评论:0  赞:0  阅读:321
[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:13:52    收藏:0  评论:0  赞:0  阅读:397
Entity Framework 实体框架的形成之旅--Code First的框架设计(5)
在前面几篇介绍了Entity Framework 实体框架的形成过程,整体框架主要是基于Database First的方式构建,也就是利用EDMX文件的映射关系,构建表与表之间的关系,这种模式弹性好,也可以利用图形化的设计器来设计表之间的关系,是开发项目较多采用的模式,不过问题还是这个XML太过复杂...
分类:其他   时间:2015-03-20 01:13:42    收藏:0  评论:0  赞:0  阅读:300
ccf认证模拟题之三---最大的矩形
问题描述在横轴上放了n个相邻的矩形,每个矩形的宽度是1,而第i(1 ≤ i ≤ n)个矩形的高度是hi。这n个矩形构成了一个直方图。例如,下图中六个矩形的高度就分别是3, 1, 6, 5, 2, 3。请找出能放在给定直方图里面积最大的矩形,它的边要与坐标轴平行。对于上面给出的例子,最大矩形如下图所示...
分类:其他   时间:2015-03-20 01:13:12    收藏:0  评论:0  赞:0  阅读:615
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:12:02    收藏:0  评论:0  赞:0  阅读:301
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:11:02    收藏:0  评论:0  赞:0  阅读:288
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:10:52    收藏:0  评论:0  赞:0  阅读:294
TYVJ 1038忠诚 ST 求区间最值
已经不搞ACM了,就是最近随便做点题,就在这里存个代码 1 #include 2 #include 3 using namespace std; 4 const int maxn = 100005; 5 int a[maxn][20]; 6 int x[maxn]; 7 void i...
分类:其他   时间:2015-03-20 01:10:32    收藏:0  评论:0  赞:0  阅读:366
设计模式简介
一、设计模式简介设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。 毫无疑问,设计模式于己于他人于系统都是多赢的;设计模式使代码编制真正工程化;设计模式是软件工程的基石脉络...
分类:其他   时间:2015-03-20 01:10:22    收藏:0  评论:0  赞:0  阅读:292
安装PIL库
之前在github上看到猫猫的攻破12306代码git clone之后尝试在本地运行发现缺少PIL库,下载源码之后手动编译安装。失败后来发现是缺少jpeg和zlib的支持遂执行brew install libjpegbrew install zlib删掉之前安装的PIL,再安装,还是不成功然后继续安...
分类:其他   时间:2015-03-20 01:09:52    收藏:0  评论:0  赞:0  阅读:571
LeetCode – Refresh – Gray Code
i ^ (i >> 1), that's the general format 1 class Solution { 2 public: 3 vector grayCode(int n) { 4 vector result; 5 for (int i = 0;...
分类:其他   时间:2015-03-20 01:09:42    收藏:0  评论:0  赞:0  阅读:321
【转载】Zend Studio 10正式版注册破解
1.文件和汉化文件 ZendStudio官方下载地址:http://www.geekso.com/component/zendstudio-downloads/百度云地址:10.0.0.msi文件: url1juno汉化文件:http://pan.baidu.com/share/link?share...
分类:其他   时间:2015-03-20 01:09:32    收藏:0  评论:0  赞:0  阅读:338
Sublime Text 3 安装 Package Control
Sublime Text 3 安装 Package Control | 浏览:2461 | 更新:2014-04-26 18:07 自动安装: 1、通过快捷键 ctrl+`?或者 View > Show Console 菜单打开控制台 2、粘贴对应版本的代码后回车安装 适用于 Sublime Te...
分类:其他   时间:2015-03-20 00:07:32    收藏:0  评论:0  赞:0  阅读:355
EL表达式
格式: ${ 开头 } 结尾,中间写代码,代码一般以.或[]连接,来取出属性 如${ person.name }取出person的name属性,内部会通过反射,调用person.getName()方法 ${ list[0].name } ${ empty(object)?} empty()是EL表达式...
分类:其他   时间:2015-03-20 00:07:17    收藏:0  评论:0  赞:0  阅读:353
LeetCode --- 68. Text Justification
题目链接:Text Justification Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You should pack your words in a ...
分类:其他   时间:2015-03-20 00:06:02    收藏:0  评论:0  赞:0  阅读:360
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!