1. 两数之和 https://leetcode cn.com/problems/two sum/ | 难度 | 完成日期 | 耗时 | 提交次数 | | | | | | | 简单 | 2020 1 16 | 0.5小时 | | 问题描述 给定一个整数数组 nums 和一个目标值 target,请你 ...
分类:
其他好文 时间:
2020-01-17 00:18:10
阅读次数:
83
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 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
【题目】题目链接 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
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
链表的回文结构 对于一个链表,请设计一个时间复杂度为O(n),额外空间复杂度为O(1)的算法,判断其是否为回文结构。 给定一个链表的头指针 A ,请返回一个bool值,代表其是否为回文结构。保证链表长度小于等于900。 测试样例: Java C++ two sum https://www.nowco ...
分类:
其他好文 时间:
2020-01-16 12:28:50
阅读次数:
69
博弈 Game 的分类维度 Deterministic or stochastic? One, two, or more players? Zero sum? Perfect information (can you see the state)? Adversarial Search 对抗搜索 A ...
分类:
其他好文 时间:
2020-01-16 11:01:47
阅读次数:
145
"Deadline" "Yet Another Meme Problem" "Two Arrays" "Minimax Problem" "Messenger Simulator" Deadline $$ Time Limit: 2 s\quad Memory Limit: 256 MB $$ 这是 ...
分类:
其他好文 时间:
2020-01-16 01:09:07
阅读次数:
79
C - Two Arrays 题目链接:https://codeforces.com/contest/1288/problem/C 题目: 题意:给你n,m,利用1~n之间的数(可重复)来组成长度为m的数组a,b,要求数组a非递减,数组b非递增,且a数组的数《=b数组中的数,求出a,b数组对数 思路 ...
分类:
其他好文 时间:
2020-01-15 19:42:36
阅读次数:
60
来源 https://leetcode cn.com/problems/add two numbers/ 题目描述 给出两个?非空 的链表用来表示两个非负的整数。其中,它们各自的位数是按照?逆序?的方式存储的,并且它们的每个节点只能存储?一位?数字。 如果,我们将这两个数相加起来,则会返回一个新的链 ...
分类:
编程语言 时间:
2020-01-15 17:56:13
阅读次数:
85