码迷,mamicode.com
首页 > 其他好文
396. Rotate Function
Given an array of integers A and let n to be its length. Assume Bk to be an array obtained by rotating the array A k positions clock-wise, we define a ...
分类:其他好文   时间:2016-09-14 07:18:03    阅读次数:185
Dedecms限制栏目列表生成的最大页数
Dedecms默认并没有这个设置项,修改这个设置主要有二个目的: 1)防止生成列表时消耗过多的时间,有些大数据量的网站,列表可以达到几千页,生成这些列表是十分耗时的。 2)防止被采集,如果列表不加以限制,全站的文章都可以被索引到。 具体的设置方法为: 在系统->站点设置中添加一个新的变量,变量名称: ...
分类:其他好文   时间:2016-09-14 07:19:10    阅读次数:212
JcJc错别字在线检查---知乎新版社区管理规范---发现了错别字
JcJc错别字在线检查 知乎新版社区管理规范于 发现了错别字 找错别字,似乎是一个挑刺,找别人毛病, 甚至是一个不让人欢迎的举动 。 在今天发布的 : 知乎新版社区管理规范被JcJc错别字在线检查发现了错别字: 3. 频繁发布难以辨识涵义影响阅读体验的字符、数字等无意义乱码; https://zhu ...
分类:其他好文   时间:2016-09-14 07:17:10    阅读次数:171
LeetCode-Binary Tree Paths
Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: All root-to-leaf paths are: Credits:Special thanks t ...
分类:其他好文   时间:2016-09-14 07:17:24    阅读次数:146
不动产登记系统
不动产登记系统界面,WPF及VS2013开发,怎么样? ...
分类:其他好文   时间:2016-09-14 07:17:10    阅读次数:152
86. Partition List
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the ...
分类:其他好文   时间:2016-09-14 07:17:28    阅读次数:155
NYOJ题目1048破门锁
每个锁位上可能的数为5(正确的一个+上偏移的两个+下偏移的两个),所以总共可能性为: 但是这里面有个关键的问题就是用户密码和工厂密码可开的可能有重复的,所以答案是250去掉重复的部分。 困了,睡,明天再写... 题目来源: http://acm.nyist.net/JudgeOnline/probl ...
分类:其他好文   时间:2016-09-14 07:16:55    阅读次数:193
简单的循环队列
#include<stdio.h>#include<malloc.h> #define max 10 typedef struct node{int queue[max];int front,rear;}q,*queue;void init(queue p){p->front=-1;p->rear= ...
分类:其他好文   时间:2016-09-14 07:16:27    阅读次数:182
LeetCode-Isomorphic Strings
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc ...
分类:其他好文   时间:2016-09-14 07:15:17    阅读次数:146
NYOJ题目1045看美女
开始的时候蠢蠢的使用直白的模拟: 然后很不幸,TLE 然后想着分别从两侧扫描只记录最大值然后跟当前比较做标记位就可以了,这样子的话最多扫描两遍数组就可以了,效率还是蛮高的。 AC代码: 题目来源: http://acm.nyist.net/JudgeOnline/problem.php?pid=10 ...
分类:其他好文   时间:2016-09-14 07:15:34    阅读次数:232
解决VS2005 VS2008 vs2010断点无效-源代码与原始版本不同
网上说的方法:(额~但是我就是不能用。但是也贴出来) 方法1、直接把整个文件格式化了一次,断点就可以用了Ctrl + A全选菜单:编辑-〉高级-〉设置选定内容的格式 (Ctrl+K, Ctrl+F)通过比较文件发现是由于制表符Tab(0x09)引起的,原因不详。 方法2:整个工程重新生成。 方法3: ...
分类:其他好文   时间:2016-09-14 07:15:35    阅读次数:185
_CrtSetBreakAlloc简单内存泄漏检测方法,解决Detected memory leaks!问题
我的环境是: XP SP2 . VS2003 最近在一个项目中,程序退出后都出现内存泄漏: 而且每次退出都是一样的.泄漏的内存块都是98500. 解决方法: 1. 在程序开始启动的地方(足够前的地方,只要在泄漏的内存分配的前面)使用代码: _CrtSetBreakAlloc(98500); //98 ...
分类:其他好文   时间:2016-09-14 07:15:13    阅读次数:241
NYOJ题目1047欧几里得
相邻的两个自然数互质,所以与n互质并且不大于n的最大数就是n-1了,还有就是稍微注意一下数据范围。 AC代码: 题目来源: http://acm.nyist.net/JudgeOnline/problem.php?pid=1047 ...
分类:其他好文   时间:2016-09-14 07:16:52    阅读次数:190
PhotoShop技巧
1、图片嵌入到字中 2、删除图片中的一部分 用套索工具圈住要删除的部分,然后再编辑填充 ,在填充面板下选择内容识别填充,模式为正常 ...
分类:其他好文   时间:2016-09-14 07:14:13    阅读次数:155
Codeforces Round #371 (Div. 2) A
传送门 题意: 思路: AC代码: ...
分类:其他好文   时间:2016-09-14 07:16:20    阅读次数:157
LeetCode-Implement Stack Using Queues
Implement the following operations of a stack using queues. push(x) -- Push element x onto stack. pop() -- Removes the element on top of the stack. to ...
分类:其他好文   时间:2016-09-14 07:14:38    阅读次数:116
[Angular 2] Directive intro and exportAs
First, What is directive, what is the difference between component and directive. For my understanding, component is something like 'canvas', 'form', ...
分类:其他好文   时间:2016-09-14 07:15:38    阅读次数:347
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!