There was 25 kids in a class, every kids had some best friends.
To simplify the problem, Let's call each kids with their initial name.
here is a list of kids best friends.
a : [l,h]
b : [k,m,i]
c : [f,l,n,j]
d : [g,m,o]
e : [h,n]
f : [c,m,q]
g : [d,n,r,p]
h : [a,k,q,s,o,e]
i : [b,l,r,t]
j : [c,m,s]
k : [u,r,h,b]
l : [u,w,s,i,c,a]
m : [f,b,d,j,t,x,p,v]
n : [y,w,q,g,c,e]
o : [x,r,h,d]
p : [w,m,g]
q : [x,n,h,f]
r : [u,k,g,i,o,y]
s : [v,l,h,j]
t : [w,m,i]
u : [l,r]
v : [k,m,s]
w : [p,l,n,t]
x : [q,m,o]
y : [r,n]
One day all kids was outside the class room except "a".
then his teacher asked "a" to call one of his best friend to enter the room, "a" called "l".
then the teacher asked "l" to call one of his best friend outside to enter the room, and so on.
after all the call chain, there was no more kids outside, and "s" was the last kids called.
Question
jasen
There was 25 kids in a class, every kids had some best friends.
To simplify the problem, Let's call each kids with their initial name.
here is a list of kids best friends.
a : [l,h]
b : [k,m,i]
c : [f,l,n,j]
d : [g,m,o]
e : [h,n]
f : [c,m,q]
g : [d,n,r,p]
h : [a,k,q,s,o,e]
i : [b,l,r,t]
j : [c,m,s]
k : [u,r,h,b]
l : [u,w,s,i,c,a]
m : [f,b,d,j,t,x,p,v]
n : [y,w,q,g,c,e]
o : [x,r,h,d]
p : [w,m,g]
q : [x,n,h,f]
r : [u,k,g,i,o,y]
s : [v,l,h,j]
t : [w,m,i]
u : [l,r]
v : [k,m,s]
w : [p,l,n,t]
x : [q,m,o]
y : [r,n]
One day all kids was outside the class room except "a".
then his teacher asked "a" to call one of his best friend to enter the room, "a" called "l".
then the teacher asked "l" to call one of his best friend outside to enter the room, and so on.
after all the call chain, there was no more kids outside, and "s" was the last kids called.
determine the call chain !
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.