give array integer citation citationsi number citation researcher receive ith paper citation sort ascending order return compute researcher hindexaccorde definition hindex Wikipedia a scientist index h h n paper h citation n h paper h citation eachIf possible value h maximum take hindexyou write algorithm run logarithmic time Example 1input citation 01356output 3explanation 01356 mean researcher 5 paper total receive 0 1 3 5 6 citation respectivelysince researcher 3 paper 3 citation remain 3 citation hindex 3example 2input citation 12100output 2 Constraintsn citationslength1 n 1050 citationsi 1000citation sort ascending order