 |
|
skyahead
V2EX member #18128, joined on 2012-03-15 00:09:29 +08:00
|
skyahead's recent replies
www.qingdao6.com都可以访问,看来是firefox比较聪明,自动加了www.
“加入一个有潜力的成熟创业团队”的缺点是:
1.跟稳定的大公司比,工资低,失败可能大。
2.跟自己创业比,拿不到原始股,stock option基本就是扯淡
昨天刚好写了一个python,不过输入是字符串!
def get_permutations(s):
result = []
assert len(s) is not 0 # sanity check
if len(s) == 1:
result.append(s)
else: # len >= 2
for i in range(len(s)):
curr = s[i]
# rest of the string
if i == 0: # first in the string
rest = s[1 : ]
elif i == len(s) - 1: # last in the string
rest = s[ : i ]
else: # those in the middle
rest = s[0 : i] + s[i + 1 : ]
for a in get_permutations(rest): # get all the premutations of [s - curr]
result.append(curr + a)
return result
if __name__ == "__main__":
s = '1234'
print get_permutations(s)
我的firefox是23.0.1,但是提示不支持“Sorry
EasyMeeting supports chrome 22+ now”。手机上什么浏览器支持webrtc呢?这个技术做面试平台非常好,可惜目前浏览器支持的实在不够啊。。。