6 Nov 2022 by Richard MacCutchan
Use a true false flag. At the beginning of each search for duplicates, set it equal to 'false'. Whenever you find a duplicate, set it to 'true'. At the end of each loop if the value is still 'false', then you did not replace any duplicates. If it...