For common game elements, there is often a myriad of past topics covering the subject. You'd probably have good luck searching the forums, and checking the Frequently Asked Questions topic.
Here is an example using an array:
Demo
Capx
Regarding efficiency, I suppose it really depends on how you want the inventory to function.