I am new to solving algorithm puzzles, thinking to start using C for a while.
One thing I observe in puzzles is they demand very very large numbers (eg: of order 100000 digits number) which drives me crazy. How exactly we should be dealing them?
Solving these puzzles don't give us the luxury to use 3rd party libraries for high level API..
say for instance, we have a number of 1000000 digits, how do we even store and operate on it? One way is to store as character array but this leads to complicated logic and probably not faster either..
Take a look into this simple puzzle: SPOJ.com - Problem PALIN
NOTE: I am not asking for a solution to this. but to give a picture what I am talking about and the questions I am trying to solve.
How do we approach such large data.
Since I am new, any help that lets me get better in solving is appreciated.
Thanks