h-index 1.0.0
H-Index
Loading...
Searching...
No Matches
main.cpp File Reference
#include <iostream>
#include <vector>
#include <map>
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 45 of file main.cpp.

46{
47 // vector<int> array = {3, 0, 6, 1, 5};
48 // vector<int> array = {11, 15};
49 vector<int> array = {1, 2, 0};
50 Solution sol;
51 cout << "h-index: " << sol.hIndex(array) << endl;
52 return 0;
53}
int hIndex(vector< int > &citations)
Definition main.cpp:10

References Solution::hIndex().