Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
2 errors spotted.
File "/workspace/default/solution.py", line 37
return math.sqrt(sum(i**2 for i in sVals)
^
SyntaxError: '(' was never closed
AttributeError: 'list' object has no attribute 'equals'
https://docs.python.org/3/reference/expressions.html#shifting-operations
Ok. Quantity of collisions depends on tash table size and hash function. Let's see an example, where we have hash table with size 25, len(a1) = 5, len(a2) = 5 and a3 = [125, 300, 50]. According to my hash function: 125 mod 25 = 0, 300 mod 25 = 0, 50 mod 25 = 0. So we have hash table [ [125, 300, 50], [], [], [], .... ] (I use hash table with chains). We have 2 collisions in hash table with size 25. Not so good. And whats wrong? Conclusion: we need to build hash table according length of our array, which will be stored in hash table. By the way, hash function also have a big influence on quantity of collisions. If you interested in this question, you can read Introduction to Algorithms by Cormen.