码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
(链表 importance) leetcode 2. Add Two Numbers
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:其他好文   时间:2019-04-14 13:55:29    阅读次数:107
[LeetCode] 4. 寻找两个有序数组的中位数
题目链接:https://leetcode cn.com/problems/median of two sorted arrays/ 题目描述: 给定两个大小为 m 和 n 的有序数组 和 。 请你找出这两个有序数组的中位数,并且要求算法的时间复杂度为 O(log(m + n))。 你可以假设 和 ...
分类:编程语言   时间:2019-04-13 17:38:10    阅读次数:148
Leetcode 884. Uncommon Words from Two Sentences
class Solution: def uncommonFromSentences(self, A: str, B: str) -> List[str]: return [v for v, n in collections.Counter(A.split()+B.split()).items() i... ...
分类:其他好文   时间:2019-04-13 10:50:57    阅读次数:108
LeetCode 13 Roman to Integer 解题报告
题目要求 Roman numerals are represented by seven different symbols: I, V, X, L, C, Dand M. For example, two is written as II in Roman numeral, just two on ...
分类:其他好文   时间:2019-04-13 10:44:01    阅读次数:166
#Leetcode# 633. Sum of Square Numbers
https://leetcode.com/problems/sum-of-square-numbers/ Given a non-negative integer c, your task is to decide whether there're two integers a and b such ...
分类:其他好文   时间:2019-04-13 10:41:19    阅读次数:149
3D旋转
//3D旋转 .two:hover{ -webkit-transform:rotateY(360deg); transition:all 0.8s ease-in-out; } //放大 three:hover{ -webkit-transform:scale(1.2); transition:al ...
分类:其他好文   时间:2019-04-12 21:54:41    阅读次数:232
两段锁协议(Two-Phase Locking――2PL)
两段锁协议(Two-Phase Locking――2PL) 两段锁协议规定所有的事务应遵守的规则: ① 在对任何数据进行读、写操作之前,首先要申请并获得对该数据的封锁。 ② 在释放一个封锁之后,事务不再申请和获得其它任何封锁。 即事务的执行分为两个阶段: 第一阶段是获得封锁的阶段,称为扩展阶段。 第 ...
分类:其他好文   时间:2019-04-12 19:08:03    阅读次数:419
将文本按行标识符进行分割
def split_docs(lines, separator): """ :note: The English sentence is in the front, the Chinese sentence is in the back, and the two are separated by a... ...
分类:其他好文   时间:2019-04-12 12:08:07    阅读次数:157
LeetCode 100. Same Tree 判断两棵二叉树是否相等
Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident ...
分类:其他好文   时间:2019-04-10 22:10:20    阅读次数:149
hdu3307 欧拉函数
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3307 Description has only two Sentences Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/3276 ...
分类:其他好文   时间:2019-04-10 19:17:31    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!