上一页 1 ··· 126 127 128 129 130 131 132 133 134 ··· 273 下一页
摘要: 在一个二维01矩阵中找到全为1的最大正方形 阅读全文
posted @ 2018-12-21 10:30 bonelee 阅读(1668) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/network-delay-time/ There are N network nodes, labelled 1 to N. Given times, a list of travel times as directed edges ti 阅读全文
posted @ 2018-12-09 22:35 bonelee 阅读(829) 评论(0) 推荐(0)
摘要: 单源最短路径 给定一个图,和一个源顶点src,找到从src到其它所有所有顶点的最短路径,图中可能含有负权值的边。 Dijksra的算法是一个贪婪算法,时间复杂度是O(VLogV)(使用最小堆)。但是迪杰斯特拉算法在有负权值边的图中不适用,Bellman-Ford适合这样的图。在网络路由中,该算法会被 阅读全文
posted @ 2018-12-09 21:13 bonelee 阅读(2030) 评论(0) 推荐(0)
摘要: Python内置的heapq模块 Python3.4版本中heapq包含了几个有用的方法:heapq.heappush(heap,item):将item,推入heap >>> items = [1,2,9,7,3] >>> heapq.heappush(items,10) >>> items [1, 阅读全文
posted @ 2018-12-09 12:22 bonelee 阅读(4837) 评论(0) 推荐(0)
摘要: 819. Most Common Word Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words. It is guara 阅读全文
posted @ 2018-12-09 12:18 bonelee 阅读(374) 评论(0) 推荐(0)
摘要: 703. Kth Largest Element in a Stream Easy Easy Design a class to find the kth largest element in a stream. Note that it is the kth largest element in 阅读全文
posted @ 2018-12-09 11:35 bonelee 阅读(332) 评论(0) 推荐(0)
摘要: Modeling and Analysis of RRC-Based Signalling Storms in 3G Networks 还是使用状态机模型来做恶意UE识别 https://san.ee.ic.ac.uk/publications/ggorbil_gelenbe_TETC_15_fin 阅读全文
posted @ 2018-12-06 12:05 bonelee 阅读(4127) 评论(7) 推荐(0)
摘要: /** * 如何仅用递归函数和栈操作逆序一个栈 * 题目: * 一个栈依次压入1,2,3,4,5,那么从栈顶到栈底分别为5,4,3,2,1。 * 将这个栈转置后,从栈顶到栈底为1,2,3,4,5,也就是实现栈中元素的逆序, * 但是只能用递归函数来实现,不能用其他数据结构。 * */方法一:既然是递 阅读全文
posted @ 2018-12-06 09:34 bonelee 阅读(373) 评论(0) 推荐(0)
摘要: python预测 c++使用该daal4py的模型: 阅读全文
posted @ 2018-11-30 16:23 bonelee 阅读(1143) 评论(0) 推荐(0)
摘要: 基尼系数是指国际上通用的、用以衡量一个国家或地区居民收入差距的常用指标。基尼系数介于0-1之间,基尼系数越大,表示不平等程度越高。 收入基尼系数 其具体含义是指,在全部居民收入中,用于进行不平均分配的那部分收入所占的比例。基尼系数最大为“1”,最小等于“0”。前者表示居民之间的收入分配绝对不平均,即 阅读全文
posted @ 2018-11-30 15:20 bonelee 阅读(3866) 评论(0) 推荐(0)
上一页 1 ··· 126 127 128 129 130 131 132 133 134 ··· 273 下一页