码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
1002 A+B for Polynomials (25 分)
This time, you are supposed to find $A+B$ where $A$ and $B$ are two polynomials. Input Specification: Each input file contains one test case. Each cas ...
分类:其他好文   时间:2021-02-10 13:03:20    阅读次数:0
is_sorted
leetcode打卡 题面 class Solution { public: bool checkPossibility(vector<int> &nums) { int n = nums.size(); for (int i = 0; i < n - 1; ++i) { int x = nums[ ...
分类:其他好文   时间:2021-02-08 12:11:43    阅读次数:0
java8--lambda
LinkedHashMap<String,User> result = //方法一 map.entrySet().stream() //根据User中某个字段进行排序 .sorted(Map.Entry.comparingByValue( //若为Map<String,String>,则不需要下面这 ...
分类:编程语言   时间:2021-02-06 11:44:18    阅读次数:0
116. Populating Next Right Pointers in Each Node
仅供自己学习 题目: You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the foll ...
分类:其他好文   时间:2021-02-04 12:10:58    阅读次数:0
4、HTML 列表标签
无序列表 <ul type="none"> <li>第一项</li> <li>第二项</li> <li>第三项</li> <li>第四项</li> </ul> 有序列表 <ol type="1" start="5"> <li>one</li> <li>two</li> <li>three</li> ...
分类:Web程序   时间:2021-02-02 11:32:02    阅读次数:0
Zookeeper 一致性协议
两阶段提交 two-phase commit (2PC) 三阶段提交 three-phase commit (3PC) Paxos 算法 ZAB 算法 2PC 两阶段提交,强一致性算法。常用在分布式数据库中,如分布式事务(tcc)。 undo 记录原始数据的样子,事务失败了恢复,成功了记入 redo ...
分类:其他好文   时间:2021-02-01 12:36:44    阅读次数:0
leetocde 905 python
905. 按奇偶排序数组 难度 简单 | 标签 数组 Description 给定一个非负整数数组 A,返回一个数组,在该数组中, A 的所有偶数元素之后跟着所有奇数元素。 你可以返回满足此条件的任何数组作为答案。 示例: 输入:[3,1,2,4] 输出:[2,4,3,1] 输出 [4,2,3,1] ...
分类:编程语言   时间:2021-01-29 12:08:34    阅读次数:0
POJ2406 Power Strings(循环节)
Power Strings Description Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcde ...
分类:其他好文   时间:2021-01-26 11:47:12    阅读次数:0
Redis初识
第1章 Redis初识 Redis 是什么 开源 基于键值的存储服务系统 多种数据结构 strings hash linked list sets sorted sets 高性能、功能丰富 Redis 的特性 速度快 持久化 多种数据结构 支持多种编程语言 功能丰富 简单 主从复制 高可用、分布式 ...
分类:其他好文   时间:2021-01-25 11:08:42    阅读次数:0
1657. Determine if Two Strings Are Close
Two strings are considered close if you can attain one from the other using the following operations: Operation 1: Swap any two existing characters. F ...
分类:其他好文   时间:2021-01-25 11:07:52    阅读次数:0
17004条   上一页 1 ... 6 7 8 9 10 ... 1701 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!