码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
I. Powers Of Two
I. Powers Of Two A positive integer xx is called a power of two if it can be represented as x=2yx=2y, where y is a non-negative integer. So, the power ...
分类:其他好文   时间:2020-01-18 12:25:52    阅读次数:97
Combine two graphs: nx.compose
nx.compose Return a new graph of G composed with H. Composition is the simple union of the node sets and edge sets. ref "link" ...
分类:其他好文   时间:2020-01-18 10:47:15    阅读次数:89
leetcode-38
「外观数列」是一个整数序列,从数字 1 开始,序列中的每一项都是对前一项的描述。前五项如下: 1. 12. 113. 214. 12115. 1112211 被读作 "one 1" ("一个一") , 即 11。11 被读作 "two 1s" ("两个一"), 即 21。21 被读作 "one 2" ...
分类:其他好文   时间:2020-01-17 20:48:55    阅读次数:65
【leetcode】1320. Minimum Distance to Type a Word Using Two Fingers
题目如下: You have a keyboard layout as shown above in the XY plane, where each English uppercase letter is located at some coordinate, for example, the l ...
分类:其他好文   时间:2020-01-17 11:45:26    阅读次数:67
1. 两数之和
1. 两数之和 https://leetcode cn.com/problems/two sum/ | 难度 | 完成日期 | 耗时 | 提交次数 | | | | | | | 简单 | 2020 1 16 | 0.5小时 | | 问题描述 给定一个整数数组 nums 和一个目标值 target,请你 ...
分类:其他好文   时间:2020-01-17 00:18:10    阅读次数:83
!Codeforces Round #364 (Div. 2) C. They Are Everywhere
https://codeforces.com/contest/701/problem/C binary search strings two pointers #include<bits/stdc++.h> using namespace std; const int N=1e5+5; char s ...
分类:其他好文   时间:2020-01-16 22:09:48    阅读次数:71
(数论)D - Beautiful Numbers
D - Beautiful Numbers Vitaly is a very weird man. He's got two favorite digits a and b. Vitaly calls a positive integer good, if the decimal represent ...
分类:其他好文   时间:2020-01-16 19:06:21    阅读次数:79
[hdu-5795]A Simple Nim 博弈 尼姆博弈 SG函数打表找规律
【题目】题目链接 Two players take turns picking candies from n heaps,the player who picks the last one will win the game.On each turn they can pick any number ...
分类:其他好文   时间:2020-01-16 14:47:51    阅读次数:57
[LC] 796. Rotate String
We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example, ...
分类:其他好文   时间:2020-01-16 12:45:23    阅读次数:79
链表(2)
链表的回文结构 对于一个链表,请设计一个时间复杂度为O(n),额外空间复杂度为O(1)的算法,判断其是否为回文结构。 给定一个链表的头指针 A ,请返回一个bool值,代表其是否为回文结构。保证链表长度小于等于900。 测试样例: Java C++ two sum https://www.nowco ...
分类:其他好文   时间:2020-01-16 12:28:50    阅读次数:69
12209条   上一页 1 ... 61 62 63 64 65 ... 1221 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!