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