hey, Can any one please see this problem and tell me how to deal with number like 10^100 ? Please help me out as it is used in many many problems. thanks in advance to everyone.
Member #957352
Recommended Answers
Jump to Post— nmaillet 97There are a number of libraries that deal with large integers, such as GMP.
Jump to Post— np complete 8Actually you can solve the bishop problem by hand, first try for samller numbers then generalize the result. Its a common math olympiad problem.
Anyways, returning to your question, you can handle such number by linked list. You have to develop your own way to do operations like add, subtract …
Jump to Post— WaltP 2,905Enter it into a temporary input buffer. Then move it into place in your array.
np complete: you can handle such number by linked list.
Major overkill. Since the numbers must be kept sequential, why do you need a structure containing and int and a pointer and all …
All 10 Replies
nmaillet 97 Posting Whiz in Training
np complete 8 Newbie Poster
Member #957352
nmaillet 97 Posting Whiz in Training
Member #957352
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
nmaillet 97 Posting Whiz in Training
WaltP commented: Close enough -- but now he doesn't have to think about it anymore since you handed him the code. -3
Member #957352
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
delta_frost 0 Newbie Poster
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.