[algogeeks] store fractional numbers with high precision

2010-04-11 Thread GentLeBoY
how to store fractional numbers with a fractional part having 25-30 digits after decimal place, does long double has the same precision as double?. 1 more prob. format specifier for long double is %lf and same for double, so if i write long double a; scanf("%lf",&a); a=a*2;

[algogeeks] combination problem

2010-04-09 Thread GentLeBoY
no. of solutions to linear equation as x1+x2+x3+. . .+xk=n , all variables are positive natural numbers how is it (n-1)C(k-1) plz explain -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegro

[algogeeks] Re: Finding the middle of a singly linked list which has a cycle in it

2010-03-27 Thread GentLeBoY
I think the problem can be solved in O(n^2) time. Any1 having better solution? Sanjana wrote: > Hello, > Can someone help me out with this. How to find the middle of a singly > linked list which also has a cycle in it. -- You received this message because you are subscribed to the Google Groups

[algogeeks] Algorithm intensive Please solve

2010-02-12 Thread GentLeBoY
given 2N points in a plane. Pair up to obtain N distinct pairs such that total sum of paired distances is minimum. N can be atmost 50. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups