1297. Palindrome Time limit: 1.0 secondMemory limit: 64 MB The “U.S. Robots” HQ has just received a rather alarming anonymous letter. It states that t ...
分类:
其他好文 时间:
2019-06-11 09:39:45
阅读次数:
173
回溯法,参考:https://leetcode.com/problems/letter-tile-possibilities/discuss/308486/Simple-python-solution-with-backtracking 另外一行样式: 参考:https://leetcode.com ...
分类:
其他好文 时间:
2019-06-09 22:30:02
阅读次数:
149
1 #define _for(i,a,b) for(int i = (a);i s; 7 int numTilePossibilities(string tiles) 8 { 9 s.clear(); 10 int rnt = 0; 11 for (int S = 1; S >i &... ...
分类:
其他好文 时间:
2019-06-09 13:09:39
阅读次数:
84
The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a member of the Oulipo group. A quote fr ...
分类:
其他好文 时间:
2019-06-08 18:49:58
阅读次数:
80
该题涉及到mysql中一些指令,先熟悉一下 MySQL指令 参考:https://www.cnblogs.com/zhuyongzhe/p/7686105.html python中使用MySQL指令 安装了mysql,python3.0先装好pymysql,在IDLE中测试下import pymys ...
分类:
数据库 时间:
2019-06-07 22:48:57
阅读次数:
172
题目链接 : https://leetcode cn.com/problems/combinations/ 题目描述: 给定两个整数 n 和 k ,返回 1 ... n 中所有可能的 k 个数的组合。 示例: 思路: 思路一: 库函数 思路二: 回溯算法 代码: 思路二 java "46. 全排列" ...
分类:
其他好文 时间:
2019-06-01 19:22:56
阅读次数:
90
Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 题意 给定一个没加点的IP地址,返回所有可能的合法IP地址。 思路: ...
分类:
其他好文 时间:
2019-06-01 09:49:58
阅读次数:
93
如果在技术领域没遇到过什么难题(相对的)的话,只能证明你还涉世不深,高手一般都是填过无数的坑、踩过无数的bug的尸体走过来的,一帆风顺走过来的抗击打能力一般也会比较弱,一旦遇到坎就会熄火。 一个人的自我教育能力、成长经历、环境影响都对当下解决问题有着潜移默化的影响。如何练就自己解决问题的能力呢? 面 ...
分类:
其他好文 时间:
2019-05-28 09:36:00
阅读次数:
129
You have a list of and a , and you want to know which words in matches the pattern. A word matches the pattern if there exists a permutation of letter ...
分类:
其他好文 时间:
2019-05-24 22:28:27
阅读次数:
120