Why 3 rows? How do you know that all the rows are exhausted? For that you
need to maintain a while(1) loop which obviously turn into O(n^2)
complexity..

On Mon, Jul 18, 2011 at 10:07 PM, sunny agrawal <[email protected]>wrote:

> we don't need to find min and max values and hence there is a better
> solution
> and i think my solution works !!
>
> On Mon, Jul 18, 2011 at 10:04 PM, Swathi <[email protected]> wrote:
>
>> As said by someone already.. inorder to find min and max values it takes
>> O(n^2).. so i think there is no better solution below O(n^2)
>>
>>
>> On Mon, Jul 18, 2011 at 10:01 PM, sunny agrawal 
>> <[email protected]>wrote:
>>
>>> if i am not getting question wrong.....
>>> read only 3 rows
>>> find min and max of these 3n numbers
>>> as min and max will be only in one lines output the line without min and
>>> max
>>>
>>>
>>> On Mon, Jul 18, 2011 at 9:55 PM, SkRiPt KiDdIe 
>>> <[email protected]>wrote:
>>>
>>>> Reading the input will cost n^2
>>>>>
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Algorithm Geeks" 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/algogeeks?hl=en.
>>>>
>>>
>>>
>>>
>>> --
>>> Sunny Aggrawal
>>> B-Tech IV year,CSI
>>> Indian Institute Of Technology,Roorkee
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Algorithm Geeks" 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/algogeeks?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" 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/algogeeks?hl=en.
>>
>
>
>
> --
> Sunny Aggrawal
> B-Tech IV year,CSI
> Indian Institute Of Technology,Roorkee
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" 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/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" 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/algogeeks?hl=en.

Reply via email to