I wanted to know an efficient algorithm to calculate the product of divisors..
My brute force method is giving me a Time limit exceeded.
catchmrbharath 0 Light Poster
Recommended Answers
Jump to PostGoogle is your friend.
http://www.mathlinks.ro/viewtopic.php?t=277509
http://en.wikipedia.org/wiki/Divisor_function
I guess you can use that there. :)
Jump to Post>I can't understand why your brutal force algorithm is so expensive
It will certainly not be. But he may be getting 100 of Input tests at once. So it may exceed the time limit ( which is about 2-3 seconds ).
All 7 Replies
Sky Diploma 571 Practically a Posting Shark
ArkM 1,090 Postaholic
Sky Diploma 571 Practically a Posting Shark
siddhant3s 1,429 Practically a Posting Shark
catchmrbharath 0 Light Poster
catchmrbharath 0 Light Poster
ArkM 1,090 Postaholic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.