码迷,mamicode.com
首页 > 其他好文
poj 3468 A Simple Problem with Integers
A Simple Problem with Integers Time Limit:5000MS     Memory Limit:131072KB     64bit IO Format:%I64d & %I64u Submit Status Description You have N integers, A1, A2, ... , AN. You need t...
分类:其他好文   时间:2015-07-23 07:06:09    阅读次数:158
altium designer 原理图复制出错
复制原理图的时候最后弹出这样的错误 InvalidParameter at 2510219C. AdvSch.dll, Base Address: 24C80000. Exception Occurred In Copy 方法1: 先看看能不能添加本地打印机,要是无法添加打印机,在桌面选中“我的电脑”,鼠标右键选择“管理”;  在“管理”窗口中,...
分类:其他好文   时间:2015-07-23 07:06:30    阅读次数:792
Codeforces 559B Equivalent Strings 等价串
题意:给定两个等长串a,b,判断是否等价。等价的含义为:若长度为奇数,则必须是相同串。若长度是偶数,则将两串都均分成长度为原串一半的两个子串al,ar和bl,br,其中al和bl等价且ar和br等价,或者al和br等价且ar和bl等价。 实际上很水。直接按照题意模拟写个递归分治就可以求。比赛的时候总觉得这样暴力写会TLE,因为算了下大概是4...
分类:其他好文   时间:2015-07-23 07:06:55    阅读次数:235
实现icon和文字垂直居中的两种方法-(vertical-align and line-height)
方法一:vertical-align 在w3school定义:该属性定义行内元素的基线相对于该元素所在行的基线的垂直对齐 百思不得骑姐 然后Google,反正在w3schools上面并没有找到定义 只能写代码测试 而后个人理解,才作出如此解释》 该属性作用的对象:行内元素(inline,inline-block也有行内属性) 其他table-cell  常用属性值:top mid...
分类:其他好文   时间:2015-07-23 07:05:45    阅读次数:209
Codeforces Round #313 (Div. 2) (ABCD题解)
Codeforces Round #313 (Div. 2) (ABCD题解)...
分类:其他好文   时间:2015-07-23 07:05:34    阅读次数:146
#leetcode#Search a 2D Matrix II
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted in ascending from left to right.Integers in...
分类:其他好文   时间:2015-07-23 07:06:24    阅读次数:216
leetcode 240: Search a 2D Matrix II
leetcode 240: Search a 2D Matrix II python java c++...
分类:其他好文   时间:2015-07-23 07:06:55    阅读次数:317
关于外键的增删操作
给表添加外键必须满足2个条件,1,该表的引擎必须是InnoDB,2,必须给要添加外键的字段建立索引 create table child( cid int not null auto_increment primary key, pid int, key pid(pid), cname varcha...
分类:其他好文   时间:2015-07-23 07:01:01    阅读次数:133
108 Convert Sorted Array to Binary Search Tree
108 Convert Sorted Array to Binary Search Tree递归解法还是非常直观的class Solution: # @param {integer[]} nums # @return {TreeNode} def sortedArrayToBST(...
分类:其他好文   时间:2015-07-23 07:01:29    阅读次数:192
Codeforces Round #313 (Div. 2)B.B. Gerald is into Art
B. Gerald is into ArtTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/problemset/problem/560/BDescriptionGerald bought two very rare pa...
分类:其他好文   时间:2015-07-23 06:59:32    阅读次数:107
如何调戏NSString
给出一个字符串@"I am a boy,I like playing computer games",然后我们尽我们所能的调戏它. NSString *string=@"I am a boy,I like playing computer games"; NSMutableString*mS...
分类:其他好文   时间:2015-07-23 06:54:52    阅读次数:127
你必须知道的指针基础-8.栈空间与堆空间
一个由C/C++编译的程序占用的内存分为以下几个部分:1、栈区(stack):又编译器自动分配释放,存放函数的参数值,局部变量的值等,其操作方式类似于数据结构的栈。2、堆区(heap):一般是由程序员分配释放,若程序员不释放的话,程序结束时可能由OS回收,值得注意的是他与数据结构的堆是两回事,分配方...
分类:其他好文   时间:2015-07-23 06:51:45    阅读次数:194
103 Binary Tree Zigzag Level Order Traversal
103 Binary Tree Zigzag Level Order Traversallevel traversal的变种class Solution: # @param {TreeNode} root # @return {integer[][]} def zigzagLeve...
分类:其他好文   时间:2015-07-23 06:51:24    阅读次数:116
Populating Next Right Pointers in Each Node I && II
Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointe...
分类:其他好文   时间:2015-07-23 06:51:31    阅读次数:110
Implement BST
1 import java.util.*; 2 3 //docs about generic version of class: https://docs.oracle.com/javase/tutorial/java/generics/types.html 4 public class...
分类:其他好文   时间:2015-07-23 06:47:27    阅读次数:156
117 Populating Next Right Pointers in Each Node II
117 Populating Next Right Pointers in Each Node II就是 Bibary Tree Level order Traverseclass Solution: # @param root, a tree link node # @return n...
分类:其他好文   时间:2015-07-23 06:45:54    阅读次数:119
UITableView知识梳理须知—(一)
1、UITableView掌握 1> 设置UITableView的dataSource、delegate 2> UITableView多组数据和单组数据的展示 3> UITableViewCell的常见属性 4> UITableView的性能优化(cell的循环利用) 5> 自定义...
分类:其他好文   时间:2015-07-23 06:43:39    阅读次数:165
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!