You are viewing a single comment's thread. Return to all comments →
My Approach is this;
inp = int(input()) list1 = list(map(int, input().split())) dict = {} for i in list1: if i not in dict: dict[i] = 1 else: dict[i] += 1 for ind, ele in dict.items(): if (ele < inp): print(ind)
Seems like cookies are disabled on this browser, please enable them to open this website
The Captain's Room
You are viewing a single comment's thread. Return to all comments →
My Approach is this;