码迷,mamicode.com
首页 >  
搜索关键字:two points    ( 13225个结果
A. Two distinct points
A. Two distinct points You are given two segments l1;r1 and l2;r2 on the xx-axis. It is guaranteed that l1<r1l1<r1 and l2<r2l2<r2. Segments may inters ...
分类:其他好文   时间:2020-01-18 13:03:13    阅读次数:98
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 780. Reaching Points
原题链接在这里:https://leetcode.com/problems/reaching-points/ 题目: A move consists of taking a point (x, y) and transforming it to either (x, x+y) or (x+y, y) ...
分类:其他好文   时间:2020-01-17 13:51:06    阅读次数:117
【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
Leetcode1266. Minimum Time Visiting All Points
public int minTimeToVisitAllPoints(int[][] points) { int rowLength = points.length; //获取行数 int count = 0; for (int i = 0; i < rowLength - 1; i++) { in ...
分类:其他好文   时间:2020-01-17 09:42:05    阅读次数:76
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
13225条   上一页 1 ... 70 71 72 73 74 ... 1323 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!