mirror of
https://github.com/20kaushik02/leetcode-gulag.git
synced 2025-12-06 07:54:07 +00:00
11 lines
219 B
C++
11 lines
219 B
C++
#include "soln.hpp"
|
|
#include <iostream>
|
|
|
|
int main()
|
|
{
|
|
vector<int> nums = {2, 2, 1, 1, 1, 2, 2};
|
|
int answer = 2;
|
|
Solution soln;
|
|
cout << "Majority element is correct? " << soln.test(nums, answer) << endl;
|
|
return 0;
|
|
} |