码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
415. Add Strings
Problem : Given two non negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: 1. The length of both num1 and n ...
分类:其他好文   时间:2020-04-11 23:42:02    阅读次数:75
HDoj 2052 Picture
Problem Description Give you the width and height of the rectangle,darw it. Input Input contains a number of test cases.For each case ,there are two n ...
分类:其他好文   时间:2020-04-11 23:29:43    阅读次数:97
高效 告别996,开启java高效编程之门 3-6流操作分类
1 重点 理解流程操作分类 常用的方法 2 Stream流操作分类: 2.1 流操作分类之中间操作(Intermediate): 无状态操作——filter/map/peek等有状态操作——dictinct/sorted/limit等 2.2 流操作分类之终端操作(Termina1):非短路操作—— ...
分类:编程语言   时间:2020-04-11 09:39:25    阅读次数:80
Redis
[toc] Redis 标签(空格分隔): SQL 1. 什么是Redis Redis是基于内存的高性能 数据库. 2. Redis的数据类型 String, Hash, List, Set, Sorted Set. 3. 内部结构 Redis内部使用一个RedisObject对象来表示所有的 和` ...
分类:其他好文   时间:2020-04-10 16:02:56    阅读次数:80
排序和数据结构
[TOC] 各种排序算法时间复杂度及空间复杂度对比 Timsort与其他比较排序算法时间复杂度(time complexity)的比较 空间复杂度(space complexities)比较 各种排序算法 同等硬件条件下,对相同长度的的列表排序,所有时常如下: 1.python内置方法sorted( ...
分类:编程语言   时间:2020-04-10 00:38:40    阅读次数:84
【LeetCode链表】删除排序链表中的重复元素 II
题目描述 给定一个排序链表,删除所有含有重复数字的节点,只保留原始链表中 没有重复出现 的数字。 示例: 题目链接 :https://leetcode cn.com/problems/remove duplicates from sorted list ii/ 做这题之前,可以先做 "删除排序链表中 ...
分类:编程语言   时间:2020-04-10 00:36:26    阅读次数:74
HDoj 2051 Bitset
Problem Description Give you a number on base ten,you should output it on base two.(0 < n < 1000) Input For each case there is a postive number n on b ...
分类:其他好文   时间:2020-04-10 00:29:53    阅读次数:80
redis的几种数据结构及使用场景
redis以key-value方式存储,支持诸多种数据结构:String,Hash,List,Set,Sorted Set 1.String字符串,应用场景最多的数据结构,其他四种是在此基础上实现的,value可以使简单的字符串、xml、json、数字、二进制。 键值最大不允许超过512m,从性能上 ...
分类:其他好文   时间:2020-04-09 09:14:27    阅读次数:86
POJ 3784. Running Median
"Link" 题意: 给出一个长度为奇数的序列,输出前 $1,3,5,\dots$ 个数的中位数 思路: 对顶堆 建立一个小根堆和大根堆 如果当前数比小根堆堆顶大,插入小根堆 如果当前数比小根堆堆顶小,插入大根堆 大根堆堆顶是始终小于小根堆堆顶的 当已经插入的个数为奇数时,我们要保证大根堆里的数比小 ...
分类:其他好文   时间:2020-04-09 00:07:07    阅读次数:67
[LeetCode] 876. Middle of the Linked List
Given a non empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the second middl ...
分类:其他好文   时间:2020-04-08 22:19:40    阅读次数:93
17004条   上一页 1 ... 54 55 56 57 58 ... 1701 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!