Right now I am thinking that about all those solutions done by look-up method, what is the point in it ? although the code runs faster but it is without a logic. I have to accept that it is a viable one to solve the problem(whether a practice problem or a practical problem). A real mathematician unlike a programmer chooses the logic over a hack. I don’t know which category I may belong.
anyway it is part of the process, today if there are any problems of that sort in April Cook-off 2014, I am surely going to use the method.