Hey...yes...lil mistake in writing.. In that solution...3's adjacents are 1 and 2..neither of which is 3's BFF...3's BFF is 4 instead...that's why that is not a valid solution..
On Sat, Apr 16, 2016 at 10:01 PM, Anon82910 <[email protected]> wrote: > Am Samstag, 16. April 2016 07:02:54 UTC+2 schrieb Nisarg Mehta: > > 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. > > Thanks! It kinda slipped my mind that each member has to have at least 1 > BFF adjacent to itself. Somehow, I thought that each member had to have at > least 1 BFF adjacent to itself or at least is referenced by 1 other person > adjacent to itself. > > -- > 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/ea7b4a36-49c9-483d-9743-ee689f1904cb%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/CAB1Hf5a_p8SAUWKV4hVt2gjgtj0QNOC_0ZkCToRO_rChh7GKYQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
