DocumentationAlgorithmsNP CompleteDecide if an algorithm is NP and find the approximate solution.Last updated on February 24, 2026Majority Element: Boyer–Moore majority voteSorting algorithm