m*l
2 楼
【 以下文字转载自 Military 讨论区 】
发信人: moneybull (moneybull), 信区: Military
标 题: 顶牛营救的一定要去family随便定个贴
发信站: BBS 未名空间站 (Sat Dec 31 18:18:37 2011, 美东)
否则钻风可能不算数
发信人: moneybull (moneybull), 信区: Military
标 题: 顶牛营救的一定要去family随便定个贴
发信站: BBS 未名空间站 (Sat Dec 31 18:18:37 2011, 美东)
否则钻风可能不算数
t*n
3 楼
用的bfs, 总是得到TLE结果。请问还有什么办法可以更快?谢谢!
Python code :
class Solution:
# @param start, a string
# @param end, a string
# @param dict, a set of string
# @return an integer
def ladderLength(self, start, end, d):
d = set(d)
q = []
dis = {}
dis[start] = 1
q.append(start)
letters = string.letters[0:26]
while q !=[]:
x = q.pop()
# print x
for i in range(len(x)):
for l in letters:
xx = list(x)
xx[i] = l
newWord = ("").join(xx)
if newWord != x and newWord in d:
# print "newWord:", newWord
dis[newWord] = dis[x] + 1
q = [newWord] + q
if newWord == end:
return dis[newWord]
return 0
Python code :
class Solution:
# @param start, a string
# @param end, a string
# @param dict, a set of string
# @return an integer
def ladderLength(self, start, end, d):
d = set(d)
q = []
dis = {}
dis[start] = 1
q.append(start)
letters = string.letters[0:26]
while q !=[]:
x = q.pop()
# print x
for i in range(len(x)):
for l in letters:
xx = list(x)
xx[i] = l
newWord = ("").join(xx)
if newWord != x and newWord in d:
# print "newWord:", newWord
dis[newWord] = dis[x] + 1
q = [newWord] + q
if newWord == end:
return dis[newWord]
return 0
f*7
4 楼
Title: A Likelihood Approach to Classifying Fluorescent Events Collected by
Multicolor Flow Cytometry
感兴趣的请把姓名,学校的邮箱,学校名称,研究方向,发给我。
只是推荐,不能保证能选上,谢谢
Multicolor Flow Cytometry
感兴趣的请把姓名,学校的邮箱,学校名称,研究方向,发给我。
只是推荐,不能保证能选上,谢谢
x*d
5 楼
盘后大跌
fxxxx
fxxxx
l*t
6 楼
真的?
t*n
7 楼
过了,呵呵
p*3
8 楼
I listened to the conference call. What I can say is the poor management
team (stupid ceo) facing disappointed/angry investors.
team (stupid ceo) facing disappointed/angry investors.
p*3
12 楼
Not daNiu. I have 4000 shares and will hold till the next conference call.
CBAK is more like rumor/news driven company. It can go above $3 easily with
some news/rumors. YMYD
CBAK is more like rumor/news driven company. It can go above $3 easily with
some news/rumors. YMYD
s*e
14 楼
只管捂
这种公司首先不会破产,再次也是被收购,这样的价位很安全的。
这种公司首先不会破产,再次也是被收购,这样的价位很安全的。
c*2
20 楼
Don't touch Chinese penny stocks. Most of the time you will be disappointed/
trapped.
trapped.
J*e
22 楼
以前在一个party里见过这公司的一个高层(据说手底下管着几千人),那叫一个能吹
。
。
相关阅读