Re: [algogeeks] 400!

2010-05-12 Thread Nikhil Agarwal
@jitendra: your python code is awesome and it works.:) On Wed, May 12, 2010 at 6:37 PM, divya jain wrote: > thanx to all 4 the solutions.. > > > On 3 May 2010 18:39, Varun Nagpal wrote: > >> @Rajesh gave a simple elegant solution. >> >> A look at a Linux calculator : you can even calculate 9

Re: [algogeeks] 400!

2010-05-12 Thread divya jain
thanx to all 4 the solutions.. On 3 May 2010 18:39, Varun Nagpal wrote: > @Rajesh gave a simple elegant solution. > > A look at a Linux calculator : you can even calculate 99! = > 8.854887824e+5584950 in few seconds. I just looked at the code(its open > source right!), which is not so ea

Re: [algogeeks] Re: Complexity of Algorithms

2010-05-12 Thread Varun Nagpal
A program is just an implementation of an algorithm. You may use any language to implement an algorithm as a program. To make time and space complexity analysis independent of language or computing platform, we relate them with algorithm. This is also useful when you need to compare different solut

Re: [algogeeks] tree from linked list

2010-05-12 Thread divya jain
thanks a lot to all for their replies.. On 9 May 2010 11:23, rahul rai wrote: > can anyone give me links to more educative and active groups like algogeeks > > On Sun, May 9, 2010 at 2:11 AM, Arun prasath > wrote: > > This does not create a balanced tree but ensures that every element in > the

Re: [algogeeks] Re: question

2010-05-12 Thread jalaj jaiswal
@sateesh suppose after sorting the array is -99,-98,-97,-96,-95,-2,-1,0,4,5,99 the answer should be {-99,0,99}.. sum is closest to zero here so i dnt think the transition method works On Fri, May 7, 2010 at 9:58 PM, sateesh wrote: > I think this can be solved in better way. > > 1) S