I am having trouble resolving this general issue with a slight twist:
According to n fields with one hidden number inside and a verification procedure that decides whether two fields contain the same or different numbers, determine if there is a number that is present in most boxes, i.e. are there more than n / 2 mailboxes with the same hidden number in O (n log n) time.
I know the Moore Voting algorithm, but this problem seems a bit different.
source
share