Let for example: PALIN requires 1000000 digits number..
I am not sure if long long int / double (C programming) can even fit them.
The other option is to store them as character array.

I am new to algo puzzles. In general, how should be approach very long numbers?

If we use strings instead of a number, we often end up with complex logic and more iterations.
If we use numbers, the data does not fit usually..

I am a bit confused.
Any help that gives me better picture to able to solve problems is appreciated

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 17 10d

Want to read more? Browse other topics in C and C++ or view latest topics.