码迷,mamicode.com
首页 >  
搜索关键字:kth    ( 692个结果
23. Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 同378. Kth Smallest Element in a Sorted Matrix ...
分类:其他好文   时间:2017-07-28 15:42:05    阅读次数:124
bzoj 3224: Tyvj 1728 普通平衡树
Description 您需要写一种数据结构(可参考题目标题),来维护一些数,其中需要提供以下操作:1. 插入x数2. 删除x数(若有多个相同的数,因只删除一个)3. 查询x数的排名(若有多个相同的数,因输出最小的排名)4. 查询排名为x的数5. 求x的前驱(前驱定义为小于x,且最大的数)6. 求x ...
分类:其他好文   时间:2017-07-28 12:49:10    阅读次数:146
Java - TCP网络编程
Java - TCP网络编程 Server 逻辑思路: 注意:对Scoket/File进行创建、关闭,都需要放try catch中,检测 IOException,所以将网络IO部分整体放入try catch中即可。 1. 字符串操作 输出:PrintWriter out=new PrintWrite ...
分类:编程语言   时间:2017-07-25 21:22:29    阅读次数:229
230. Kth Smallest Element in a BST
题目: Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ B ...
分类:其他好文   时间:2017-07-25 21:05:37    阅读次数:180
119. 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 us ...
分类:其他好文   时间:2017-07-24 14:44:49    阅读次数:141
The kth great number multiset应用(找第k大值)
The kth great number Xiao Ming and Xiao Bao are playing a simple Numbers game. In a round Xiao Ming can choose to write down a number, or ask Xiao Bao ...
分类:其他好文   时间:2017-07-23 14:30:28    阅读次数:171
215. Kth Largest Element in an Array
题目: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For ...
分类:其他好文   时间:2017-07-17 10:00:19    阅读次数:143
Deep TEN: Texture Encoding Network
纹理特征,材料分类(Material Classification),在MINC-2500、Flickr Material Database、KTH-TIPS-2b、4D-Light-Field-Material、GTOS上state-of-the-art(2017年)。 思想主要来源是:传统图片分 ...
分类:Web程序   时间:2017-07-15 19:57:39    阅读次数:375
对象的序列化和反序列化
一、序列化和反序列化的概念 把对象转换为字节序列的过程称为对象的序列化。 把字节序列恢复为对象的过程称为对象的反序列化。 对象的序列化主要有两种用途: 1) 把对象的字节序列永久地保存到硬盘上,通常存放在一个文件中; 2) 在网络上传送对象的字节序列。 在很多应用中,需要对某些对象进行序列化,让它们 ...
分类:其他好文   时间:2017-07-15 13:48:25    阅读次数:204
[CF787D]遗产(Legacy)-线段树-优化Dijkstra(内含数据生成器)
Problem 遗产 题目大意 给出一个带权有向图,有三种操作: 1.u->v添加一条权值为w的边 2.区间[l,r]->v添加权值为w的边 3.v->区间[l,r]添加权值为w的边 求st点到每个点的最短路 Solution 首先我们思考到,若是每次对于l,r区间内的每一个点都执行一次加边操作,不 ...
分类:其他好文   时间:2017-07-14 21:17:58    阅读次数:295
692条   上一页 1 ... 29 30 31 32 33 ... 70 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!