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