@kartik.......try to implement the algo using pen and paper take 2-3 extra
variables for storing index also along with the variable max.....the same
algo will also give you the required subarray indexes along with its
length...
--


Amol Sharma
Third Year Student
Computer Science and Engineering
MNNIT Allahabad
<http://gplus.to/amolsharma99>
<http://twitter.com/amolsharma99><http://in.linkedin.com/pub/amol-sharma/21/79b/507><http://youtube.com/amolsharma99>





On Thu, Sep 29, 2011 at 12:58 PM, DIVIJ WADHAWAN <divij...@gmail.com> wrote:

> Impossible to solve in O(n) I suppose
>
>
> On Thu, Sep 29, 2011 at 12:34 PM, kartik sachan 
> <kartik.sac...@gmail.com>wrote:
>
>> @AMOL i want array index i.e i to j that will be max subarry which has
>> equal no of zero and one's
>>
>>
>> but i think ur soln is not providing this
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> 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 algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> 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 algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to