Open PalAditya opened 6 years ago
Added the O(1) method for digitSum. Also added an alternative method for finding the majority element that is still O(n) but doesn't use Hashmaps.
Added the O(1) method for digitSum. Also added an alternative method for finding the majority element that is still O(n) but doesn't use Hashmaps.