Grab 'solve_me' and post your code d = {'k1':[1,2,{'k2':['Blind this is tricky',{'tough':[1,2,['solve_me']]}]}]} Did you fire up your IDE and how long did it take?
From top of what I remember: Import numpy e = numpy.flatten(d) print(e[len(e)-1])
Stahp this- Numpy has no attribute 'flatten'
It's ndarray.flatten()
That fuckin mess of dict and lists
Whoever wrote this kind of data structure should be fired.
d['k1'][2]['k2'][1]['tough'][2][0] did I pass the test cases mommy?
Damn it. I'll be back...
We're leetcode experts here kid, nuttin personnel