[algogeeks] Re: Array of integers

2007-11-19 Thread Manish Garg
can find in O(n) if array is sorted On Nov 18, 2007 9:13 AM, dor [EMAIL PROTECTED] wrote: You can do it in O(n log(n)) (without extra space). If you can afford O(T) extra space (where T is the largest number in the array, in absolute value), you can do it in O(n). On Nov 17, 3:42 pm,

[algogeeks] Earn Money Online! No Registration Fees. Guaranteed Payments

2007-11-19 Thread Riaz Muhammad
http://www.moneycosmos.com/?r=321740 --~--~-~--~~~---~--~~ 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

[algogeeks] Call or Send SMS to any phone anywhere in the world Free!

2007-11-19 Thread Riaz Muhammad
Call or Send SMS to any phone anywhere in the world Free! - http://offr.biz/HLGB7321740QUQKUQA --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

[algogeeks] Free cPanel web hosting worth $100 for your Domain!

2007-11-19 Thread Riaz Muhammad
Free cPanel web hosting worth $100 for your Domain! 100 MB Web Space + Email + MySQL Database + FTP Access More. 100% Free, No Hidden Fees! - http://offr.biz/HLHCM321740QUQKUQA --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[algogeeks] Instantly Turn your Computer into a Super TV. Enjoy

2007-11-19 Thread Riaz Muhammad
Instantly Turn your Computer into a Super TV. Enjoy iPod, PSP, IPhone, Movies, Music, MP3, TV Shows! - http://cbnk.biz/HLSTV321740QUQKUQA --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

[algogeeks] Send SMS to India @ 1 Cent / SMS! Packs Start $2 Only

2007-11-19 Thread Riaz Muhammad
Send SMS to India @ 1 Cent / SMS! Packs Start $2 Only - http://cbnk.biz/HL1CS321740QUQKUQA --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

[algogeeks] Re: Free cPanel web hosting worth $100 for your Domain!

2007-11-19 Thread Venkatraman S
cant this user be blocked? On Nov 19, 2007 8:11 PM, Riaz Muhammad [EMAIL PROTECTED] wrote: Free cPanel web hosting worth $100 for your Domain! 100 MB Web Space + Email + MySQL Database + FTP Access More. 100% Free, No Hidden Fees! - http://offr.biz/HLHCM321740QUQKUQA --

[algogeeks] Re: Array of integers

2007-11-19 Thread MJ
you can do it O(n) time if the input array is sorted. Find the min and max value of the array and then decide how many number can be eliminated based if they are greater than X. This problem get complecated if we consider the integers are +ve as well as -Ve intergers in an array. But any way

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

2007-11-19 Thread MJ
Heap sort has a function heapify which will build the heap. If you just modify this heapify algorithm to eliminate the repeated elemenst it will work in O(nLogn). Also this will work for any number of repeated elements. you can find this algo in hte Design analysis and algorithms by Corment in