码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
python的几个常用的内建小函数
一.排序: 1.slice切片( ::-1) 2.reversed( ) 3.sorted( ,reverse=True)) 字母数字不可同时存在。默认为False升序,True降序。 4.filter(function,iterable) 二.常用 1.sum() 2.max() 3.min() ...
分类:编程语言   时间:2021-04-15 11:57:56    阅读次数:0
Full Binary Tree
题目来源 Full Binary Tree Description In computer science,a binary tree is a tree data structure in which each node has at most two children. Consider an ...
分类:其他好文   时间:2021-04-13 12:02:15    阅读次数:0
【python】Leetcode每日一题-寻找旋转排序数组中的最小元素2
【python】Leetcode每日一题-寻找旋转排序数组中的最小元素2 ...
分类:编程语言   时间:2021-04-09 13:27:35    阅读次数:0
977. Squares of a Sorted Array
Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. Example 1: I ...
分类:其他好文   时间:2021-04-08 13:55:44    阅读次数:0
81. Search in Rotated Sorted Array II
仅供自己学习 思路: 思路比较简单,但要注意细节处理。 一开始就是想遍历寻找nums[i]<nums[i-1]获得旋转点,然后对这两侧的数组分别使用二分搜索,但是一直报错,找不到原因。 根据题解二分可知二分的本质是二段性,而非单调性。只要一段满足某个性质,另外一段不满足这个性质就可以用二分。 对于一 ...
分类:其他好文   时间:2021-04-08 13:18:01    阅读次数:0
[CF468B] Two Sets - 2-sat
给定 $n$ 个数字,要划分成 $A,B$ 两个集合。要求对任意 $x$,若 $x$ 在 $A$ 中则 $a-x$ 也在 $A$ 中,若 $x$ 在 $B$ 中则 $b-x$ 也在 $B$ 中。保证数互不相同。 ...
分类:其他好文   时间:2021-04-06 14:31:06    阅读次数:0
02 add two numbers
02 add two numbers 1. 题目讲解 给定两个链表,每个链表表示一个整数,求这两个整数之和。结果也还是用链表表示。 2. 题解 思路: ? 本质上这道题是两个数带进位的加法。两个对应位置上的和是和对10取余。进位则是和整除10. class Solution { public: Li ...
分类:其他好文   时间:2021-04-06 14:12:17    阅读次数:0
【数据库】Redis(2)--Redis的常用数据类型及命令
1.Redis主要数据类型分类 Redis中存储数据常用的数据类型主要有五种:String、List、Set、Sorted Set、Hash,这五种数据结构在Redis中存储数据的命令掌握对于我们后期在使用Java框架封装类操作Redis的API了解是非常重要的。所以在这里对这五种数据结构进行一一汇 ...
分类:数据库   时间:2021-03-29 12:47:49    阅读次数:0
Redis入门到放弃系列-redis数据类型
Redis数据类型? Redis 提供一些常用的数据类型:Strings、Lists、Sets、Sorted sets、Hashes、Arrays、Bitmap、Streams Strings(字符串) Redis中的字符串类型是一比较简单的值类型,和Memcached的数据类型是一样的。 Redi ...
分类:其他好文   时间:2021-03-29 12:33:25    阅读次数:0
[LeetCode] 670. Maximum Swap
Given a non-negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you could get. ...
分类:其他好文   时间:2021-03-18 14:32:17    阅读次数:0
17004条   上一页 1 ... 3 4 5 6 7 ... 1701 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!