[algogeeks] Re: need help regarding problem..

2007-01-29 Thread Minhaz Ul-Alam
Well Mukesh, your program does not produce correct output for the following input: (0,2),(0,3),(2,0),(2,2),(2,3),(2,5),(3,0),(3,5). In this case it produces output -1 which is incorrect. As u r always taking the closest horizontal or vertical point as applicable, after choosing (2,3) it is chossing

[algogeeks] Re: need help regarding problem..

2007-01-29 Thread mukesh tiwari
thnkx for reply Minhaz ... almost the same algorithm i used but still i m getting wrong answer here is my changed algorithm kindly chk it first i m trying to find out leftmost point (ie having minmum x coordinate if two or more such points exist then i chose the point havin

[algogeeks] Discussion on unique-elements-in-an-array

2007-01-29 Thread cg.yu
using hash table --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTE