I have two big numbers (type int) which are stored in array with a size at least 1000,
and I want to compare these two numbers to get information which one is bigger than the other. How can I do this?
Actually , I will do two things
- subtract these two
- multiply these two (I am studying in this topic, indeed, and I didn’t find an efficient algorithm; feel free to help me)
Suppose you have an integer array
First of all you sort your array
Now you find that largest number is Marks[0] and second large is Marks[1]