码迷,mamicode.com
首页 >  
搜索关键字:hide    ( 2565个结果
[leetcode]-Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.Hide Tags: Tree ,Depth-first Search/** * D...
分类:其他好文   时间:2015-07-06 12:29:01    阅读次数:112
[Leetcode]-Same Tree
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value.Hide Tags :Tree ,De...
分类:其他好文   时间:2015-07-06 12:25:10    阅读次数:114
[Leetcode]-Pascal's Triangle II
Given an index k, return the kth row of the Pascal’s triangle.For example, given k = 3, Return [1,3,3,1].Note: Could you optimize your algorithm to use only O(k) extra space?Hide Tags : Array 题目:返回帕...
分类:其他好文   时间:2015-07-04 15:36:11    阅读次数:119
[Angularjs]ng-show和ng-hide
写在前面上篇文章介绍了ng-select和ng-options指令的使用,这篇文章继续指令的学习,本篇文章讲学习ng-show和ng-hide指令。系列文章[Angularjs]ng-select和ng-optionsng-show和ng-hideng-Show 和ng-Hide 允许我们显示或隐藏...
分类:Web程序   时间:2015-07-04 09:35:32    阅读次数:204
LeetCode208:Implement Trie (Prefix Tree)
Implement a trie with insert, search, and startsWith methods.Note: You may assume that all inputs are consist of lowercase letters a-z.Hide Tags Data Structure Trie实现一棵Trie树以及实现查询的功能,根据上一篇文章中的分析和伪代码可以...
分类:其他好文   时间:2015-07-03 17:35:14    阅读次数:111
js调用父级frame中的方法
父级frame中的方法: function hideOutline() { $("#outline").hide(); $("#content").attr("style", "width: 97%;"); $(".replyUserList").find("table").attr("style", "left: 35px;"); $("#showOutline").show(); }...
分类:Web程序   时间:2015-07-03 16:04:16    阅读次数:274
67 Add Binary
67 Add Binary链接:https://leetcode.com/problems/add-binary/ 问题描述: Given two binary strings, return their sum (also a binary string).For example, a = “11” b = “1” Return “100”.Hide Tags Math String求两...
分类:其他好文   时间:2015-07-03 10:42:39    阅读次数:126
当弹出的div失去焦点的时候自动隐藏
jquery:$("#button").click(function(event){ $("#box").show(); event.stopPropagation();//阻止冒泡});$("body").click(function(){ $("#box").hide();...
分类:其他好文   时间:2015-07-02 11:55:16    阅读次数:142
29 Divide Two Integers
29 Divide Two Integers链接:https://leetcode.com/problems/divide-two-integers/ 问题描述: Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.Hide T...
分类:其他好文   时间:2015-07-02 10:23:47    阅读次数:113
50 Pow(x, n)
50 Pow(x, n)链接:https://leetcode.com/problems/powx-n/ 问题描述: Implement pow(x, n).Hide Tags Math Binary Search实现pow函数。这个问题可以用递归解决,联想到到 Binary Search,我的解决方案是每次让指数缩小两倍,当指数为技术的时候需要特别处理。还有指数为负的情况需要注意。class...
分类:其他好文   时间:2015-07-01 10:12:27    阅读次数:104
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!