Third Maximum Number
Given an integer array nums, return the third distinct maximum number in this array. If the third maximum does not exist, return the maximum number.
LeetCode Problem - 414
import java.util.IntSummaryStatistics;
import java.util.stream.IntStream;
impo...
perfinsights.hashnode.dev1 min read