码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
5403. Find the Kth Smallest Sum of a Matrix With Sorted Rows
You are given an m * n matrix, mat, and an integer k, which has its rows sorted in non-decreasing order. You are allowed to choose exactly 1 element f ...
分类:其他好文   时间:2020-05-03 18:14:33    阅读次数:59
Redis系列(二):常用操作
一、数据类型 如果学过数据结构就会知道,操作往往是在特定的数据结构上的,不同的数据结构就会有不同的操作,Redis支持以下的数据类型: 字符串(Strings),列表(Lists),集合(Sets),哈希表(Hashes),有序集合(Sorted Sets),Bitmaps和HyperLogLogs ...
分类:其他好文   时间:2020-05-03 16:53:38    阅读次数:44
1876. 外星人字典(简单)
1876. 外星人字典(简单) 中文English 某种外星语也使用英文小写字母,但可能顺序 order 不同。字母表的顺序(order)是一些小写字母的排列。 给定一组用外星语书写的单词 words,以及其字母表的顺序 order,只有当给定的单词在这种外星语中按字典序排列时,返回 true;否则 ...
分类:其他好文   时间:2020-05-03 01:19:21    阅读次数:102
leetcode . 删除排序数组中的重复项
1.题目描述 给定一个排序数组,你需要在 原地 删除重复出现的元素,使得每个元素只出现一次,返回移除后数组的新长度。 不要使用额外的数组空间,你必须在 原地 修改输入数组 并在使用 O(1) 额外空间的条件下完成。 示例 1: 给定数组 nums = [1,1,2], 函数应该返回新的长度 2, 并 ...
分类:编程语言   时间:2020-05-03 00:42:07    阅读次数:75
Reverse order pairs
In a sequence of numbers,we can find some number pairs that conform to the rule below: Assuming that there exist two numbers,N and M and it's position ...
分类:其他好文   时间:2020-05-02 18:46:09    阅读次数:60
CentOS7安装Redis
简介 ? Redis 是一个开源(BSD许可)的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。 它支持多种类型的数据结构,如 "字符串(strings)" , "散列(hashes)" , "列表(lists)" , "集合(sets)" , "有序集合(sorted sets)" ...
分类:其他好文   时间:2020-05-02 14:54:29    阅读次数:57
1143 Lowest Common Ancestor (30分)
The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. A binary search tree (BST) i ...
分类:其他好文   时间:2020-05-02 14:54:12    阅读次数:50
1148 Werewolf - Simple Version (20分)
Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game, player #1 ...
分类:其他好文   时间:2020-05-02 14:51:55    阅读次数:49
1807. 斐波纳契数列简单
1807. 斐波纳契数列简单 中文English Find the Nth number in Fibonacci sequence. A Fibonacci sequence is defined as follow: The first two numbers are 0 and 1. The  ...
分类:其他好文   时间:2020-05-02 11:35:04    阅读次数:61
LeetCode 21. 合并两个有序链表
题目将两个升序链表合并为一个新的升序链表并返回。 新链表是通过拼接给定的两个链表的所有节点组成的。 代码 / Definition for singly linked list. public class ListNode { int val; ListNode next; ListNode(int ...
分类:其他好文   时间:2020-05-01 18:54:00    阅读次数:54
17004条   上一页 1 ... 45 46 47 48 49 ... 1701 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!