码迷,mamicode.com
首页 >  
搜索关键字:up    ( 7825个结果)
LeetCode "Number of 1 Bits"
Counting number of enabled bits in uint32_t.. Here is a O(lg32) solution. Very smart, like bottom-up parallel tree post-order traversal.Solution from ...
分类:其他好文   时间:2015-03-12 06:22:18    阅读次数:118
Activity.overridePendingTransition三种动画形式调试记录
定义 Activity A,Activity B。Activity.overridePendingTransition 是在 A 启动 B 时定义这个过程中用什么动画的。常见三种动画形式: 1) A slide up B still, 2) A disapper B slide up, 3) A a...
分类:其他好文   时间:2015-03-12 06:17:11    阅读次数:209
LeetCode: Linked List Cycle ii 解题报告
Linked List Cycle ii Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up: Can you solve it ...
分类:其他好文   时间:2015-03-12 00:39:43    阅读次数:157
LeetCode: Linked List Cycle解题报告
Linked List CycleGiven a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space?SOLUTION 1: 依次将链表节点添加入已....
分类:其他好文   时间:2015-03-11 23:04:31    阅读次数:223
设置HOME环境变量来修改git默认查找的ssh-key的路径
编辑git安装目录下的etc目录中的profile文件。例如: E:\Git\etc\profile 找到如下行: # Set up USER's home directory if [ -z "$HOME" -o ! -d "$HOME" ]; then HOME="$HOMEDRIVE$HOMEPATH" if [ -z "$HOME" -o ! -d "$HOME" ]; th...
分类:其他好文   时间:2015-03-11 17:26:28    阅读次数:181
HDU 2855 Fibonacci Check-up 构造矩阵
不得不承认智商真的被压制了。。 其实开始的时候试过用二项式定理避开组合数的计算,不过没想到单位矩阵这个神奇的东西233。 设有矩阵A,B,E E为单位矩阵。 设新得到的矩阵为C,那么矩阵C的第一行第一列即为答案。 #include #include #include #include #include #include #include #include #inc...
分类:其他好文   时间:2015-03-11 17:24:03    阅读次数:105
LeetCode N-Queens II
Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions. 题意:还是n皇后问题。 思路:时间复杂度要求高了,还是每行每行的放,再开一个三维的标记数组,y-x代表了主对角线,y+x代表了负对角...
分类:其他好文   时间:2015-03-11 12:55:52    阅读次数:119
[LeetCode] Set Matrix Zeroes
Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space?A s...
分类:其他好文   时间:2015-03-11 12:25:49    阅读次数:134
[LeetCode] Remove Duplicates from Sorted Array II 有序数组中去除重复项之二
Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret...
分类:编程语言   时间:2015-03-11 12:21:34    阅读次数:193
Path Sum
Path Sum问题:Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the g...
分类:其他好文   时间:2015-03-11 09:17:40    阅读次数:123
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!