Result of Long Positive Integers & Search and element in array..
- by AGeek
Hi,
I have two Questions for which I cannot find answers by googling, but I find these questions very important for preparation.. Kindly explain only the logic, I will be able to code.
In Search of Efficient Logic..... in terms of Memory and Time.
WAP to add two long positive integers. What Data structure / data type we can use to store the numbers and result.
What is the best way to search an element from an array in shortest time. Size of the array could be large enough, and any elements could be stored in the array(i.e. no range).
Thanks.