Re: [algogeeks] Re: Square of Large integer

2011-04-27 Thread hary rathor
bro u r currect but what happen when result exceed greater then integer range? here sq variable is not bery large -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe

Re: [algogeeks] Re: imporatnt(need help)

2011-04-27 Thread UTKARSH SRIVASTAV
i think mca students need to first study and then try to answer people like saurabh(.bashrc) and kaml is really not innocent but a cheater and this is really a disgrace to anyone remotely related with coding .All the MCA guys supporting them you should leave coding and should write man pages to b-t

Re: [algogeeks] Re: Square of Large integer

2011-04-27 Thread jai gupta
How about this? #include void main(){ int pow,n,n2,sq; scanf("%d",&n); n2=n,pow=1,sq=0; while(n2>0){ sq=(sq+(n%(10/pow))*pow*(n2%10))%10; n2/=10; pow*=10; } printf("%d\n",sq); } TIme Complexity O(log n) -- You received this message because you are subscri

[algogeeks] Re: N queen problem in 3D I want guidelines to solve problem

2011-04-27 Thread Don
Number the board locations 0..n^3-1. Write a function bool search(int startingLocation, int queensToPlace) If queensToPlace is zero, this is your base case. Output the board and you are done. The function loops over the locations from the startingLocation to the end of the board. If each locatio

[algogeeks] Re: Stroustrup C++ BOOK

2011-04-27 Thread Don
I have the first edition signed by Stroustrup. I know that doesn't help you, but it is kind of cool, at least if you are an Algorithm Geek. Don On Apr 23, 8:31 am, UMESH KUMAR wrote: > hi. > > Do you have anybody C++ by Stroustrup > e-book please send on group. > > Thanks and Regards > > Umesh ku

Re: [algogeeks] Re: Stroustrup C++ BOOK

2011-04-27 Thread raj singh
pls send me too. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit t

Re: [algogeeks] Re: Stroustrup C++ BOOK

2011-04-27 Thread Tushar Bindal
I have the book but I hope there are no issues with ths book being shared here. I don't have the link now. would it be fine if I share the book directly? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to alg

[algogeeks] [brain teaser ] Short Riddle 27 april

2011-04-27 Thread Lavesh Rawat
* Short Riddle How far can a dog run into the forest? * *Update Your Answers at* : Click Here Solution: Will be updated after 1 day -- "Never explain yourself. Your friends don’t nee

[algogeeks] N queen problem in 3D I want guidelines to solve problem

2011-04-27 Thread ARM1610
Hello all, I'm not getting how to solve a 3 d version of n queen problem. The specification are A n*n*n board is given, arrange n*n queens such that not a single queen crosses(kills) any other queen. Use back tracking or divide and conquer. All solutions / suggestions ar

[algogeeks] If anyone have Software Engineering Concepts By Richards E. Fairley Ebook then please mail me

2011-04-27 Thread D.N.Vishwakarma@IITR
Thanks in advance -- **With Regards Deoki Nandan Vishwakarma IITR MCA Mathematics Department* * -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group,