π“Ÿ host1.bitchan.one

𓀐 @vXetGGYH

⏱ 2d seenβ›“ 0πŸ‘ 0β§– 1

filter [-]

languages:onother

Obviously this problem is trivial to do in linear time but it might be interesting to do it in better than linear space. Maybe you'd have to use a frequency estimating algorithm to do it? That can get you part 1 at least, but part 2 might be weird unless you make assumptions about the input⏱ 2d↩