but  3 is BFF of 1. check the data

On Saturday, 16 April 2016 10:32:54 UTC+5:30, Nisarg Mehta  wrote:
> In 2nd sample of BFF problem..your solution will seem like this when you form 
> circle...
> 
> 
>     1
> 3      4
>     2
> 
> 
> Now, condition was that...each member must be adjecent to its BFF...here in 
> this case, 3 violets the condition, as it is neither BFF of 1 nor or 
> 4...that's why it is not valid answer..
> 
> 
> On Sat, Apr 16, 2016 at 9:43 AM, Anon82910 <[email protected]> wrote:
> I don't get how the BFF circle is supposed to be made.
> 
> 
> 
> The sample case shows that the solution for:
> 
> 7 8 10 10 9 2 9 6 3 3
> 
> is this sitting configuration:
> 
> 7 9 3 10 4 1
> 
> Even though there is no BFF relationship between 1 and 4, the circle is 
> correct because 1's BFF is 7.
> 
> The BFF relationship can be represented as: 10<-3<-9<-7<-1 && 10<-4
> 
> I assume that it works this way because the circle can be completed if at 
> least one of the neighbor is the kid's BFF.
> 
> 
> 
> But why is the max number of kids for this sample problem = 3?:
> 
> 3 3 4 1
> 
> This configuration should be possible to solve the problem:
> 
> 3 1 4 2
> 
> Same representation as previous example: 3<-1<-4 && 3<-2
> 
> 
> 
> Can't seem to figure out what I did wrong..
> 
> 
> 
> --
> 
> 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 [email protected].
> 
> To post to this group, send email to [email protected].
> 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-code/1086252a-1cc4-413b-ab21-c16d03c60e12%40googlegroups.com.
> 
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/2e45e138-b356-4d20-9f3c-c12aab92a047%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to