I would like to give some feedback about ...
From: https://py.checkio.org/mission/non-unique-elements/solve/
Hi,
I get a ...
TypeError: <class 'list'> is wrong data type
Fail: checkio([1,2,3,1,3])
... for my script below. However, it passes the first test and I actually return a list.
import numpy as np
def checkio(data):
counts=[data.count(i) for i in data]
mask=[(i>1) for i in counts]
data=list(np.array(data)[np.array(mask)])
return data
HTTP_USER_AGENT:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
Created at: 2016/10/13 14:52; Updated at: 2016/10/13 15:20