码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果)
Leetcode :: Single Number II
Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without u...
分类:其他好文   时间:2014-08-05 22:35:00    阅读次数:277
pyqt事件过滤器的使用(eventFilter)
#-*-coding:cp936-*-#由于现在不是很明白:事件过滤器的使用(eventFilter),先收藏着fromPyQt4importQtGui,QtCoreclassWindow(QtGui.QMainWindow):def__init__(self):QtGui.QMainWindow....
分类:其他好文   时间:2014-08-05 22:09:10    阅读次数:2780
Python 常见错误
1.1 def func():2 return a=3#错误的用法2.1 class a:2 def func():#func至少要有一个self参数3 ...........................3.1 class a:2 def _init_(self):#__...
分类:编程语言   时间:2014-08-05 19:05:19    阅读次数:230
ORA-600 [729] "UGA Space Leak" (文档 ID 31056.1)
Note: For additional ORA-600 related information please read Note:146580.1PURPOSE: This article discusses the internal error "ORA-600 [729]", what ...
分类:其他好文   时间:2014-08-05 15:40:39    阅读次数:237
Python functools.partial
def declare_consumer(self, consumer_cls, topic, callback): """Create a Consumer using the class that was passed in and add it to our...
分类:编程语言   时间:2014-08-05 15:26:59    阅读次数:291
Recover Binary Search Tree leetcode java
题目:Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space....
分类:编程语言   时间:2014-08-05 05:17:28    阅读次数:265
LeetCode——Populating Next Right Pointers in Each Node II
Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution still work? Note: You may only use constant ...
分类:其他好文   时间:2014-08-05 00:51:38    阅读次数:249
[LeetCode] Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree.Note: You may assume that duplicates do not exist in the tree./** * Definiti...
分类:其他好文   时间:2014-08-05 00:01:38    阅读次数:271
[LeetCode] Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree.Note: You may assume that duplicates do not exist in the tree.class Solutio...
分类:其他好文   时间:2014-08-04 23:57:18    阅读次数:476
python中的静态成员方法和类成员方法
Python的静态方法和类成员方法都可以被类或实例访问,两者概念不容易理清,但还是有区别的:1)静态方法无需传入self参数,类成员方法需传入代表本类的cls参数;2)从第1条,静态方法是无法访问实例变量的,而类成员方法也同样无法访问实例变量,但可以访问类变量;3)静态方法有点像函数工具库的作用,而...
分类:编程语言   时间:2014-08-04 21:26:27    阅读次数:309
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!