[algogeeks] Re: Assignment: Print reverse order

2006-04-12 Thread Michael Ageeb
And why do you think that we should solve you school assignmentsOn 4/12/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:1: Write a program that asks the user to input an integer value and print it in a reverse orderSample OutputEnter any number  65564Reverse of 65564 is 465562: Write a program tha

[algogeeks] Re: swap

2006-03-09 Thread Michael Ageeb
one linea^=b^=a^=bOn 3/9/06, hemu <[EMAIL PROTECTED]> wrote: A different way ( or operators) but underlined logic is same as that ofXORA=  (  A &  ~ B )  |  ( ~A &  B)B=   (  A &  ~ B ) |  ( ~A &  B)A=  (  A &  ~ B )  |  ( ~A &  B) Don't send me any attachment in Micro$oft (.DOC, .PPT)

[algogeeks] Re: Hard mathematical function

2006-01-02 Thread Michael Ageeb
's useful inencryption. -- ---姓名:李玉北,西安交通大学软件学院QQ:76862448 Email:[EMAIL PROTECTED]   电话:13186139624^_^ ------- -- Michael Ageeb FakhrySoftware Developer OpenCraftExper

[algogeeks] Re: Sum of sub array

2006-01-02 Thread Michael Ageeb
Yes but this will consume O(n) time at the start of the algorithm as a pre-calculations