[algogeeks] Re: the sum of two unsigned integers

2007-02-06 Thread Lego Haryanto
Have you tested that expression and ever see an overflow printed out? On 2/6/07, pramod negi <[EMAIL PROTECTED]> wrote: > > > > > > > > i think > > > to check whethere the result is overflowed or not > > check if ((A+B) -A is not equal to B) >printf("Overflow"); > > > correct in

[algogeeks] Re: spiral matrix..

2007-02-06 Thread pramod negi
The way u print a matrix in spiral order, same logic u can use to form the matrix from given input PROVIDED the order of matrix is given ... and this can be done in O(m x n) complexity... --Negi --~--~-~--~~~---~--~~ You received this message because you ar

[algogeeks] Re: the sum of two unsigned integers

2007-02-06 Thread pramod negi
> > > > i think to check whethere the result is overflowed or not check if ((A+B) -A is not equal to B) printf("Overflow"); correct in if i m wrong --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google