码迷,mamicode.com
首页 >  
搜索关键字:val    ( 23217个结果
php 常用的JS
function doit(){ var sel_val=$("#type").val(); if (sel_val=='') { $("#bigClassId1").hide(); $("#bigClassId2").hide(); } if (...
分类:Web程序   时间:2015-01-03 10:35:39    阅读次数:199
10.2.3.1 以函数方式使用数组
10.2.3.1 以函数方式使用数组    我们先来看一个 F# 的例子,这是两个F# 库处理数组的重要的高阶函数,然后,用 C# 实现相同的功能。清单 10.12 的中脚本,先用随机数初始化一个数组,然后,计算出它们的平方。   清单 10.12 处理数组的函数式方法(F# Interactive) > let rnd = new System.Random();;  val rnd...
分类:编程语言   时间:2015-01-02 17:35:06    阅读次数:226
[LeetCode]2 Add Two Numbers
https://oj.leetcode.com/problems/add-two-numbers/http://fisherlei.blogspot.com/2013/01/leetcode-add-two-numbers-solution.html/** *Definitionforsingly-linkedlist. *publicclassListNode{ *intval; *ListNodenext; *ListNode(intx){ *val=x; *next=null; *} *} */ pub..
分类:其他好文   时间:2015-01-02 16:16:51    阅读次数:132
[LeetCode]19 Remove Nth Node From End of List
https://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/http://fisherlei.blogspot.com/2012/12/leetcode-remove-nth-node-from-end-of.html/** *Definitionforsingly-linkedlist. *publicclassListNode{ *intval; *ListNodenext; *ListNode(intx){ *val=x; *nex..
分类:其他好文   时间:2015-01-02 16:12:53    阅读次数:132
[LeetCode]24 Swap Nodes in Pairs
https://oj.leetcode.com/problems/swap-nodes-in-pairs/http://fisherlei.blogspot.com/2013/01/leetcode-swap-nodes-in-pairs.html/** *Definitionforsingly-linkedlist. *publicclassListNode{ *intval; *ListNodenext; *ListNode(intx){ *val=x; *next=null; *} *} */ publ..
分类:其他好文   时间:2015-01-02 16:12:21    阅读次数:151
[LeetCode]25 Reverse Nodes in k-Group
https://oj.leetcode.com/problems/reverse-nodes-in-k-group/http://fisherlei.blogspot.com/2012/12/leetcode-reverse-nodes-in-k-group.html/** *Definitionforsingly-linkedlist. *publicclassListNode{ *intval; *ListNodenext; *ListNode(intx){ *val=x; *next=null; *} ..
分类:其他好文   时间:2015-01-02 16:12:00    阅读次数:238
[LeetCode]23 Merge k Sorted Lists
https://oj.leetcode.com/problems/merge-k-sorted-lists/http://fisherlei.blogspot.com/2012/12/leetcode-merge-k-sorted-lists.html/** *Definitionforsingly-linkedlist. *publicclassListNode{ *intval; *ListNodenext; *ListNode(intx){ *val=x; *next=null; *} *} */ pu..
分类:其他好文   时间:2015-01-02 16:11:43    阅读次数:152
[算法]二叉查找树
【简介】 二叉查找树是一种数据结构,它支持多种动态集合操作。 在二叉查找树上执行的基本操作的时间与树的高度成正比。对于一棵含有n个节点的完全二叉树,这些操作的最坏情况运行时间为O(n)。 【结构体】 一棵二叉查找树按二叉树结构来组织的。 // 二叉查找树节点 struct TreeNode { int val; TreeNode *left; Tree...
分类:编程语言   时间:2015-01-02 16:06:45    阅读次数:209
[LeetCode]42 Trapping Rain Water
https://oj.leetcode.com/problems/trapping-rain-water/http://fisherlei.blogspot.com/2013/01/leetcode-trapping-rain-water.htmlpublicclassSolution{ publicinttrap(int[]A){ //对于某坐标有 //-leftmax它左边最高 //-rightmax它右边最高 //-val它本身高度 //那么它的容..
分类:移动开发   时间:2015-01-02 07:34:08    阅读次数:195
[LeetCode]145 Binary Tree Postorder Traversal
https://oj.leetcode.com/problems/binary-tree-postorder-traversal/http://blog.csdn.net/ljphhj/article/details/21369053/** *Definitionforbinarytree *publicclassTreeNode{ *intval; *TreeNodeleft; *TreeNoderight; *TreeNode(intx){val=x;} *} */ publicclassSolution..
分类:其他好文   时间:2015-01-02 07:33:36    阅读次数:132
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!