Discover Packages
github.com/vaskoz/dailycodingproblem-go
day241
package
Version:
v0.0.0-...-36687a4
Opens a new window with list of versions in this module.
Published: Oct 28, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func HIndex(citations []int ) int
HIndex returns the H-Index of the citations from an author.
Runs in O(N log N) using O(N) extra memory because we
don't want to mutate the original data by sorting.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.