def rehashing(self, hashTable):
        cap = len(hashTable)
        cap *= 2
        ht = [None for _ in xrange(cap)]
        for node in hashTable:
            while node:
                self.__rehash(ht, ListNode(node.val))  # need a new copy
                node = node.next
        return ht
:param hashTable: A list of The first node of linked list
dataset/ETHPy150Open algorhythms/LintCode/Rehashing.py/Solution.rehashing