@Divye sir
yeah that will work fine if D is in reasonable limits ......

On Mon, Jul 11, 2011 at 4:26 PM, DK <divyekap...@gmail.com> wrote:

> @Ritu: Your solution is incorrect.
>
> Consider
>
> 1 3 41 43 47 49 90 100 110
>
> Maximum repeated 'd' value:
> '2' for the pairs (1,3), (41,43), (47,49) = 3 repeats. However, the
> sequences themselves are not part of an AP.
> The longest AP is of size 3 - (90, 100, 110) with a d of 10.
>
>
> --
> DK
>
> http://twitter.com/divyekapoor
> http://www.divye.in
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/algogeeks/-/FnebaYc_FbIJ.
>
> 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.
>



-- 
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 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