posted 13 years ago
i have a requirement,
lets say i need to maintain a list of slots which have a key from 00 to 99, and it will contain another value called id, when a request comes i select 00 key first and allocates a id, likewise when i get the response back i will remove the allocated id and make it null, when some request comes in i want to get the available slot and insert the id on the available slot
tell me which collections should i go with or do i need to create a new data structure for this?