t-complexity: $O(n)$
s-complexity: $O(n)$
use a set to count different types
Last updated 3 years ago