Q6:)Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. Example: Input: nums = [3,2,3] Output: [3] Solution: class Solution { public: vector<int> majorityElement(vector<int>& nums) { int countMajority...
gaurav246blogs.hashnode.dev2 min read
No responses yet.