Coursera-Algorithmic-Toolbox
Coursera-Algorithmic-Toolbox copied to clipboard
Update 4.2 majority.py
Majority function should return -1 in case the sequence is of size 2 and each member is unique. However this code will provide the left member. To correct it simply comment lines 9 and 10.