Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: IP address is consist of 4 parts w ...
分类:
其他好文 时间:
2018-09-23 11:31:47
阅读次数:
148
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the ...
分类:
其他好文 时间:
2018-09-23 00:18:57
阅读次数:
145
一、题目 1、审题 2、分析 给出整数 n,整数 k,求 1~n 之间的 k 个数字的所有组成。 二、解答 1、思路: 方法一、运用 DFS 方法。 方法二、f(n, k) = f(n-1, k-1) + f(n-1, k) 即: k 个数字中选了 数字 n 和 k 个数字中未选取数字 n 两种情况 ...
分类:
其他好文 时间:
2018-09-22 23:46:23
阅读次数:
177
Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to le ...
分类:
其他好文 时间:
2018-09-22 15:13:26
阅读次数:
132
思路 显然一个字符串不止包括字母和数字字符,所以我们可以 先提取出来 我们要进行比较的字符 还有一个问题是,字母是分大小写的,我们要统一大写或者统一小写,就是 规范化 代码 反思 可以看出这个提取是稍微繁琐的,在看别人速度快的代码的时候看到可以这样提取 改成这个语句之后效率可以得到有效的提升 ...
分类:
编程语言 时间:
2018-09-21 23:06:40
阅读次数:
187
Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in ... ...
分类:
其他好文 时间:
2018-09-20 18:46:34
阅读次数:
164
random.uniform(a,b)随机生成a,b之间的一个浮点数random.uniform(1,20)1.0130916166719703习题1:生成[“z1”,”y2”,”x3”,”w4”,”v5”]#coding=utf-8result=[]foriinrange(1,6):result.append(chr(122-i+1)+str(i))print(result)#coding=ut
分类:
编程语言 时间:
2018-09-20 12:22:15
阅读次数:
185
(1)Volatile原理 (一)计算机内存模型 计算机在执行程序时,每条指令都是在CPU中执行的,而执行指令过程中,势必涉及到数据的读取和写入。由于程序运行过程中的临时数据是存放在主存(物理内存)当中的,这时就存在一个问题,由于CPU执行速度很快,而从内存读取数据和向内存写入数据的过程跟CPU执行 ...
分类:
其他好文 时间:
2018-09-19 11:32:43
阅读次数:
127
职业规划: 1.Resume:简历 -Content(内涵) -layout :卖相 2.Cover letter : 求职信 3.Get the promotion you want 得到你想要的晋升 Stay focused :专注 Get results :达到工作成果 Stand out 脱 ...
分类:
其他好文 时间:
2018-09-18 11:09:43
阅读次数:
249
微软官方面向开发者提供了为期一年的免费 Office 365 企业版(价值 100 美元) 共计可以获得 25 个账号的分配权,每个用户可以激活 5 台设备的 Office 365,甚至包括 Windows macOS 的 Office 和 iOS、Android 。 并且,每个账号(除管理员帐号默 ...
分类:
其他好文 时间:
2018-09-17 19:58:36
阅读次数:
2923