You need to log in or create an account to post to this user's Wall.
#include
void main()
{
float n,a=2.0;
int i;
scanf(”%f”,&n);
for(i=1;i<10;i++)
{
a=(a+(n/a))/2.0;}
printf("%f",a);
}i guess this works
viji joined the group Facebook Interviews 9 months, 2 weeks ago
viji joined the group Dynamic Programming 9 months, 2 weeks ago
is this similar to constructing a huffman tree? taking two min elements ,add it and again pushing the sum to the queue
for 1 2 5 6 7 8 9 10
the tree would be
[…]viji joined the group Royal Bank of Scotland Interview 9 months, 2 weeks ago
viji became a registered member 9 months, 3 weeks ago
