0
Given an array of ints as input:
non_unique([1, 2, 3, 1, 3]) returns [1, 3, 1, 3]
non_unique([1, 2, 3, 4, 5]) returns []
non_unique([5, 5, 5, 5, 5]) returns [5,5,5,5,5]
non_unique([10, 9, 10, 10, 9, 8]) returns [10, 9, 10, 10, 9]
The code itself:
def checkio(originalList: list) -> list:
...