Get your own website
Python
C
Java
 
Python result:
C result:
Java result:
[[None], ['Jones'], [None], ['Lisa', 'Stuart'], [None], ['Bob'], [None], ['Siri'], ['Pete'], [None]]
Contains Stuart: True
Bucket 0: NULL
Bucket 1: Jones -> NULL
Bucket 2: NULL
Bucket 3: Lisa -> Stuart -> NULL
Bucket 4: NULL
Bucket 5: Bob -> NULL
Bucket 6: NULL
Bucket 7: Siri -> NULL
Bucket 8: Pete -> NULL
Bucket 9: NULL

Contains Stuart: true
[]
[Jones]
[]
[Lisa, Stuart]
[]
[Bob]
[]
[Siri]
[Pete]
[]
Contains Stuart: true