WERTYU UVA - 10082 A common typing error is to place the hands on the keyboard one row to the right of the correct position. So ‘Q’ is typed as ‘W’ an ...
分类:
其他好文 时间:
2019-05-21 12:40:11
阅读次数:
151
1,WebSocket和Http的区别? HTTP只能由客户端发起通信,不能主动获取实时数据。常用的方法轮询,就是用一个定时器,不停地发http请求(非常浪费资源)。 我们希望的场景是这样的:服务端数据发生变化,主动向客户端推送最新信息,客户端也可以主动向服务器发送信息。这个时候 服务器推送技术We ...
分类:
Web程序 时间:
2019-05-21 11:28:54
阅读次数:
157
https://leetcode.com/problems/longest-string-chain/ Let's say word1 is a predecessor of word2 if and only if we can add exactly one letter anywhere in ...
分类:
其他好文 时间:
2019-05-19 13:59:38
阅读次数:
225
There is a box protected by a password. The password is n digits, where each letter can be one of the first k digits 0, 1, ..., k-1. You can keep inpu ...
分类:
其他好文 时间:
2019-05-16 23:04:39
阅读次数:
251
22.产生括号组 string dfs 题面 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses 给定int n,代表n组括号,编码生成所有有效的 ...
分类:
其他好文 时间:
2019-05-16 12:45:13
阅读次数:
148
笛卡尔积:itertools.product(*iterables[, repeat]) 两个元组进行笛卡尔积: 排列:itertools.permutations(iterable[, r]) 组合:itertools.combinations(iterable, r) 组合(包含自身重复):it ...
分类:
编程语言 时间:
2019-05-14 15:09:03
阅读次数:
397
1)程序结构是三种:顺序结构、循环结构、选择结构(if和switch) 2)读程序都要从main()入口,然后从最上面顺序往下读(碰到循环做循环,碰到选择做选择) 3)计算机的数据在电脑中保存是以二进制的形式,数据存放的位置就是他的地址。 4)bit 是位 是指为0或者1。byte是指字节,一个字节 ...
分类:
编程语言 时间:
2019-05-14 13:20:52
阅读次数:
115
Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 使用标志k记录当前所得的子字符串个数。当满足有4个子字符串并且s中的 ...
分类:
其他好文 时间:
2019-05-14 12:48:14
阅读次数:
107
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: " ...
分类:
其他好文 时间:
2019-05-13 23:25:05
阅读次数:
133
Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the ...
分类:
编程语言 时间:
2019-05-05 14:41:47
阅读次数:
164