#cp
Read more stories on Hashnode
Articles with this tag
Majority element II · 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:...
Majority element · Q5:)Given an array nums of size n, return the majority element.The majority element is the element that appears more than ⌊n / 2⌋...
Maximum Product of subarray · Q4:)Given an integer array, find a subarray that has the largest product, and return the product. The test cases are...