Reputation:
HI!
Could anybody say how to fix the problem in the Huffman algorthm (if put together all the parts) from this Internet site:
Error:
itemqueue = [Node(a, len(list(b))) for a, b in groupby(sorted(input))]
TypeError: 'builtin_function_or_method' object is not iterable
Thanks!
Upvotes: 2
Views: 1475