Nop, It's not a homework.
It's the classical problem, which I want to know how to do with perl when there are large number of elements.
With small number of elements, this is fast.. I did with perl. May be with less complicated algorithm.
Also, I am looking for the test cases.
Perl involves here may be with Storage or Data::Dumper or Tie...
It involves with efficient storage and retrieval and display via CGI.
Thanks,