Ye sit is a filling algorithm..

anyone with the solution ?

On Tue, Jan 10, 2012 at 1:18 PM, Aurelian Tutuianu <[email protected]>wrote:

> I believe that your answer is not for the problem statement. As I
> understood from problem statement the gaps can have any form and can have
> any deep. The volume of stored water depends on the heights of it's
> neighbors.
> I understood the problem but I did not found a quick algorithm for that. I
> looks like a filling algorithm, that is sure.
>
>
> On Sat, Jan 7, 2012 at 6:28 PM, Mayur Kala <[email protected]> wrote:
>
>> hey vivek hi,
>> i recevied your question for "Algorithm for filling water"
>>
>> As you can see that each figure is composed of 4 blocks..
>> So:
>> step 1 : Find the volume of one block;
>> Setp 2: Multiply this volume with 4 which gives you volume of any
>> figure (say : squre or any other as all are containing 4 blocks);
>> Step 2: You have n figures in the whole system, Multiply it with the
>> volume achieved by step2
>>
>> You have your ans.
>>
>> On 1/3/12, vivek dhiman <[email protected]> wrote:
>> > anyone ??
>> >
>> > --
>> > 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 this group at
>> > http://groups.google.com/group/google-code?hl=en.
>> >
>> >
>>
>> --
>> 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 this group at
>> http://groups.google.com/group/google-code?hl=en.
>>
>>
>  --
> 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 this group at
> http://groups.google.com/group/google-code?hl=en.
>



-- 
Regards
Vivek Dhiman

-- 
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 this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to