I don't get why this input
7 8 10 10 9 2 9 6 3 3
results in this sitting configuration
7 9 3 10 4 1

even though 1 is not BFF of 4 and 4 is not BFF of 1.

If I were to assume that the circle BFF relationship is an OR relationship, 
then that configuration would make sense, because 7 is BFF of 1.
the relationship looks like this: (10<-3<-9<-7<-1 && 10<-4)

However, if that is the case, then won't it be possible to solve this problem:
3 3 4 1
by using this configuration?
4 1 3 2

same representation as previous example: (3<-1<-4 && 3<-2)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/bc6bbe10-189c-419c-882c-ca3a9cbb4a37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to