This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# coding: utf-8 | |
from math import e | |
from random import shuffle | |
from itertools import islice | |
def secretary_search(candidates): | |
"""Rejects first n / e candidates and then selects the first |