n********y 发帖数: 66 | 1 0
0 1
0 1 2 -> minspan = 3
0 1 3 -> newmin = 4 discard
0 1 4 -> newmin = 5 discard
...
second to last
0 1 25 -> newmin = 26 discard
final
0 26 25 -> newmin = 27 discard |
|
n********y 发帖数: 66 | 2 0
0 1
0 1 2 -> minspan = 3
0 1 3 -> newmin = 4 discard
0 1 4 -> newmin = 5 discard
...
second to last
0 1 25 -> newmin = 26 discard
final
0 26 25 -> newmin = 27 discard |
|
n********y 发帖数: 66 | 3 0
0 3
0 3 5 => minspan = 5-0+1
0 9 5 => newmin = 9-0+1, discard
10 9 5 => newmin = 10-5+1 discard
10 9 12 => newmin = 12-9+1, update minspan |
|
m*****k 发帖数: 731 | 4 try this case:
s1 = "ABCCCCCCCCCCCCCCCCCCCCCCCCB"
s2 = "ABC"
it seems to me that your way will do a lot of unnecessary computing and
discarding.
0
0 3
0 3 5 => minspan = 5-0+1
0 9 5 => newmin = 9-0+1, discard
10 9 5 => newmin = 10-5+1 discard
10 9 12 => newmin = 12-9+1, update minspan |
|
n********y 发帖数: 66 | 5 0
0 3
0 3 5 => minspan = 5-0+1
0 9 5 => newmin = 9-0+1, discard
10 9 5 => newmin = 10-5+1 discard
10 9 12 => newmin = 12-9+1, update minspan |
|
m*****k 发帖数: 731 | 6 try this case:
s1 = "ABCCCCCCCCCCCCCCCCCCCCCCCCB"
s2 = "ABC"
it seems to me that your way will do a lot of unnecessary computing and
discarding.
0
0 3
0 3 5 => minspan = 5-0+1
0 9 5 => newmin = 9-0+1, discard
10 9 5 => newmin = 10-5+1 discard
10 9 12 => newmin = 12-9+1, update minspan |
|
y*****l 发帖数: 5997 | 7 来自主题: _pennystock版 - Mcet 恭喜,还是OTC猛。
MultiCell Technologies is Granted Stem Cell Patent
1 hours 51 minutes ago - PR Newswire via Comtex
PR NewswireMultiCell Technologies, Inc. (OTC Bulletin Board: MCET) is
pleased to announce the issuance of U.S. patent 7,935,528 by the United
States Patent and Trademark Office (USPTO) relating to the isolation and use
of human liver stem cells to treat liver disease. Under the terms of its
license agreement with Rhode Island Hospital, MultiCell Technologies is the
worldwide exclusive li... 阅读全帖 |
|