上一页 1 ··· 165 166 167 168 169 170 171 172 173 ··· 273 下一页
摘要: Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a move is incrementing n 阅读全文
posted @ 2018-03-25 20:46 bonelee 阅读(239) 评论(0) 推荐(0)
摘要: For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by now i 阅读全文
posted @ 2018-03-25 20:28 bonelee 阅读(237) 评论(0) 推荐(0)
摘要: Given an m * n matrix M initialized with all 0's and several update operations. Operations are represented by a 2D array, and each operation is repres 阅读全文
posted @ 2018-03-25 12:34 bonelee 阅读(216) 评论(0) 推荐(0)
摘要: Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each element 阅读全文
posted @ 2018-03-25 12:20 bonelee 阅读(176) 评论(0) 推荐(0)
摘要: Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example: 阅读全文
posted @ 2018-03-25 12:15 bonelee 阅读(182) 评论(0) 推荐(0)
摘要: 先看看线索二叉树 n个结点的二叉链表中含有n+1(2n-(n-1)=n+1)个空指针域。利用二叉链表中的空指针域,存放指向结点在某种遍历次序下的前驱和后继结点的指针(这种附加的指针称为"线索")。 对于n个结点的二叉树,在二叉链存储结构中有n+1个空链域,利用这些空链域存放在某种遍历次序下该结点的前 阅读全文
posted @ 2018-03-24 23:20 bonelee 阅读(380) 评论(0) 推荐(0)
摘要: Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all 阅读全文
posted @ 2018-03-24 22:06 bonelee 阅读(224) 评论(1) 推荐(0)
摘要: 以下是一段简单的闭包代码示例: 博客园 首页 新随笔 联系 订阅 管理 随笔-80 文章-0 评论-2 博客园 首页 新随笔 联系 订阅 管理 随笔-80 文章-0 评论-2 随笔-80 文章-0 评论-2 python中global 和 nonlocal 的作用域 python引用变量的顺序: 当 阅读全文
posted @ 2018-03-24 21:41 bonelee 阅读(751) 评论(0) 推荐(0)
摘要: RESCALING attribute data to values to scale the range in [0, 1] or [−1, 1] is useful for the optimization algorithms, such as gradient descent, that a 阅读全文
posted @ 2018-03-23 18:50 bonelee 阅读(18869) 评论(1) 推荐(5)
摘要: python利用决策树进行特征选择(注释部分为绘图功能),最后输出特征排序: 其中, 1.13. Feature selection The classes in the sklearn.feature_selection module can be used for feature selecti 阅读全文
posted @ 2018-03-23 18:49 bonelee 阅读(11793) 评论(0) 推荐(0)
上一页 1 ··· 165 166 167 168 169 170 171 172 173 ··· 273 下一页