no. are from 1 to 99 , by sum of n numbers formula we ve
sum(99)= (99*998)/2
but here we have an array a[100] with a repeated element.Sum of the numbers
in this array is
for(i=1;i<100;i++)
{
sum1+=a[i];
}
repeated element = sum(99)-sum1;
--
You received this message because you are subscribe
if we give a=10, b=5 we get a^b=15
but wen a=10,b=7 we get a^b=13
why s it so,..???
--
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 t
On Mon, Aug 15, 2011 at 8:04 AM, Shravanthi U M
wrote:
> In Bangalore Institute of Technology, bangalore
>
> regards,
> Shravanthi U M
> http://shravanthimohan.wordpress.com
>
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks&
In Bangalore Institute of Technology, bangalore
regards,
Shravanthi U M
http://shravanthimohan.wordpress.com
--
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 u