maximum-count-of-positive-integer-and-negative-integer 1.0.0
Maximum Count of Positive Integer and Negative Integer
Loading...
Searching...
No Matches
main.cpp File Reference
#include <bits/stdc++.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Data Structures

class  Solution
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 54 of file main.cpp.

55{
56 vector<int> nums = {-4, -3, -2, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4}; // 13 elements, 6 zeroes, 3 negatives, 4 positives
57 cout << Solution().maximumCount(nums) << '\n'; // return 4
58 return 0;
59}
int maximumCount(vector< int > &nums)
Definition main.cpp:8

References Solution::maximumCount().