• Non unique elements


I would like to give some feedback about ...

From: http://www.checkio.org/mission/non-unique-elements/solve/


Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0

Hi I just joined checkio. I found the concept really cool and fun. I was wondering if the debugger was allowing recursive code? I tried some recursion on this exercise with the following code :

""" def myfun(l1,l2) if l2=[]: return l1

else: if (l2[0] in l1) or (l2[0] in l2[1:]): return myfun(l1+[l2[0]],l2[1:]) else: return myfun(l1,l2[1:])

And u apply my fun to [],data.

Not the most efficient but I was wondering if recursive coding was allowed.

By the way I love the concept. Great website