Memoization is a very useful as well as often needed optimization technique.I implement this, using an extra array to store the results.
Is there any more efficient way to achieve memoization in C/C++/Java?? Just if there is some way of getting it from cache?