Hello,

I had attached a picture including two unrooted binary tree with their
representations:
(((H,O),(P,B)),M,D)
(((H,(P,B),O),M,D)

The task is representation any tree to a separate matrix.

Please find the attachment.

Thanks

On Mon, Oct 8, 2012 at 1:28 PM, Soumyorup Dey <[email protected]>wrote:

> your query is not clear....wat do u mean by "matrix"
> representation......what is the desired output?....pls give us the problem
> in i/p o/p format......from what I understood, i/p is the string of leaves,
> commas and brackets. But its not clear what will be the output..
>
> Thanks & Regards
> [image: Soumyorup Dey]
> Soumyorup Dey
> *Assistant Systems Engineer - Trainee*
> *Tata Consultancy Services Ltd.* - Experience Certainity
> Kolkata, India
> ☎: +91-9831672538
> ✉: [email protected]
> [image: Facebook] <http://www.facebook.com/soumyorupdey> [image: Google
> Plus] <https://plus.google.com/100440322200200605070> [image: 
> LinkedIn]<http://www.linkedin.com/in/soumyorupdey> [image:
> YouTube] <http://www.youtube.com/user/soumyorupdey> [image: 
> Twitter]<https://twitter.com/SoumyorupDey>
> [image: Google Talk] [email protected] [image: Y! Messenger]
> [email protected] [image: Skype] soumyorup.dey [image: MSN]
> [email protected]
>  Be like me, be Carbon free - don't print this and save a tree
>
>
> On Mon, Oct 8, 2012 at 1:36 AM, Amir Hossein Sharifzadeh <
> [email protected]> wrote:
>
>> Hello,
>>
>>
>> Here is a sample of two unrooted trees. (Please find attachment)
>>
>> Test case include parenthesis, letters (as leaves) and commas (,)
>> The task is representation an unrooted tree in a matrix.
>>
>>
>>
>> We should write a program (c or java) to represent the the string-tree to
>> a matrix:
>> int[][] getMatrix(String tree);
>>
>> Thanks a lot.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Code Jam" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


<<attachment: Untitled.jpg>>

Reply via email to