Interview Questions for an investment bank# JobHunting - 待字闺中
p*r
1 楼
(1) 怎么随机洗牌
(2) you have a binary image (0 black, 1 white), count how many white blobs
in the image? Assume 4 neighborhood.
(3)三个状态 A, B, C and a special state exit. P(A->A) = a1, P(A->B) = a2, P(
A->exit) = a3, a1+a2+a3 = 1, P(B->B) = b1, P(B->C) = b2, P(B->exit) = b3, b1
+b2+b3 = 1, P(C->C) = c1, P(C->exit) = c2, c1+c2 = 1. The first state you
will visit will always be A. Suppose you visit the following sequence of
states A->A->B->exit, define the above sequence to be of length 3, so what
is th
(2) you have a binary image (0 black, 1 white), count how many white blobs
in the image? Assume 4 neighborhood.
(3)三个状态 A, B, C and a special state exit. P(A->A) = a1, P(A->B) = a2, P(
A->exit) = a3, a1+a2+a3 = 1, P(B->B) = b1, P(B->C) = b2, P(B->exit) = b3, b1
+b2+b3 = 1, P(C->C) = c1, P(C->exit) = c2, c1+c2 = 1. The first state you
will visit will always be A. Suppose you visit the following sequence of
states A->A->B->exit, define the above sequence to be of length 3, so what
is th