17. Letter Combinations of a Phone Number Medium Medium Given a string containing digits from 2-9 inclusive, return all possible letter combinations t ...
分类:
其他好文 时间:
2019-09-14 11:24:10
阅读次数:
108
"题目链接" Solution 青蛙的约会 题目大意:求解不定方程$ax+by=c$ 分析:我们可以把原来的同余式子写成一个不定方程,~~这部分基本操作不讲~~,主要讲方程求解。看到不定方程我们就想到$exgcd$对吧? 但是$exgcd$只能适用于求解$ax+by=g$,其中$g=gcd(a,b) ...
分类:
其他好文 时间:
2019-09-12 21:35:43
阅读次数:
102
In this challenge, you will be given a palindrome which you must modify if possible. Change exactly one character of the string to another character i ...
分类:
其他好文 时间:
2019-09-12 09:33:11
阅读次数:
171
最长公共子序列不需要字符连续出现和字串不同 //LCS 求最长公共子串模板题 Common Subsequence 描述 A subsequence of a given sequence is the given sequence with some elements (possible none ...
分类:
其他好文 时间:
2019-09-10 23:42:15
阅读次数:
88
Restore IP Addresses Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given  ...
分类:
其他好文 时间:
2019-09-03 11:55:40
阅读次数:
75
Isomorphic Inversion 题目描述 Let s be a given string of up to 106 digits. Find the maximal k for which it is possible to partition s into k consecutive c ...
分类:
其他好文 时间:
2019-09-03 11:42:44
阅读次数:
93
Leetcode之广度优先搜索(BFS)专题-1162. 地图分析(As Far from Land as Possible) BFS入门详解:Leetcode之广度优先搜索(BFS)专题-429. N叉树的层序遍历(N-ary Tree Level Order Traversal) 你现在手里有一 ...
分类:
其他好文 时间:
2019-09-03 09:22:27
阅读次数:
100
Question Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example,[1,1,2] have the following ...
分类:
其他好文 时间:
2019-08-31 01:02:32
阅读次数:
53
Question There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course 0 you ...
分类:
其他好文 时间:
2019-08-30 14:00:37
阅读次数:
84
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ...
分类:
其他好文 时间:
2019-08-29 15:27:24
阅读次数:
81