MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / func

Function func

Python/hashtables/firstRecurringnum.py:2–8  ·  view source on GitHub ↗
(mylist)

Source from the content-addressed store, hash-verified

1# finding the first recurring character in a list using a hashtable
2def func(mylist):
3
4 for i in range(0, len(mylist)):
5 for j in range(i+1, len(mylist)):
6 if mylist[i] == mylist[j]:
7 return mylist[i]
8 return 0
9
10
11def hashtable(mylist):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected