tag:blogger.com,1999:blog-959939550345671470.post4778759688040344746..comments2024-03-24T12:51:18.535+05:30Comments on C programming Interview questions and answers: Division of large numbers in cPriyanka kumarihttp://www.blogger.com/profile/08145649011863585828noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-959939550345671470.post-33082101374899519072016-09-17T23:03:01.539+05:302016-09-17T23:03:01.539+05:30why to store as string first and then to integer a...why to store as string first and then to integer array?<br />why don't you directly store in integer array?Anonymoushttps://www.blogger.com/profile/03915572563054578925noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-12632229657376349742012-06-04T17:39:11.976+05:302012-06-04T17:39:11.976+05:30Not bad, but "bignum / normal integer" i...Not bad, but "bignum / normal integer" is the easy part... the basic algorithm...<br /><br />you should bugfix the part with division by too large numbers...<br />(MAX LONG + 1) / (MAX LONG) would not work I guess, because there would be an overflow before the division occurs...<br /><br />next step would be<br />-not using human read-able ascii --> use of binary numbers (less space Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-63603814934364812742010-11-13T17:16:04.792+05:302010-11-13T17:16:04.792+05:30very good algorithm!
but what happens when the div...very good algorithm!<br />but what happens when the divisor has MAX digits too??Anonymousnoreply@blogger.com