use (dynamic/ infinite)array initial the array with -1. insert(int a) { array[a]=a; } delete(int a) { array[a]=-1; } ...... Thank you, Siddharam
On Thu, Aug 18, 2011 at 7:54 PM, DheerajSharma <dheerajsharma1...@gmail.com>wrote: > bitset would work i guess > > On Aug 18, 7:10 pm, hary rathor <harry.rat...@gmail.com> wrote: > > bitset is best . require only 32 time less then require in hash table . > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.