miksayer/python_99_prolog_problems — Issue #1: 1.14 wrong result
Author: DaQuirm
Created: 2012-01-07 14:04:22+00:00
State: open

dupl_list doesn't handle unordered lists correctly:
>>> dupl_list(['a','b','b','c','a'])
['a', 'a', 'a', 'a', 'b', 'b', 'b', 'b', 'c', 'c']
while it should be
['a', 'a', 'b', 'b', 'b', 'b', 'c', 'c','a','a']