Data structure and algorithm in Python - Array-Based Sequences

In Python, each cell of the array must use the same number of bytes. Given a list of names: [’Rene’, ’Joseph’, ’Janet’, ’Jonas’, ’Helen’, ’ Virginia’] How to represent such a list within an array? Way 1: Reserve enough space for each cell to hold the maximum length string, but that would be wastfull. 8 ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download