You could also use Fly Weight pattern to implement this. http://en.wikipedia.org/wiki/Flyweight_pattern
On Saturday, May 25, 2013 10:24:09 PM UTC+5:30, Nishant Pandey wrote: > > In one of the interview it was asked, can some one suggest good DS for > this. > > Thanks > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To unsubscribe from this group and stop receiving emails from it, send an email to algogeeks+unsubscr...@googlegroups.com.