functions.py 文件源码

python
阅读 61 收藏 0 点赞 0 评论 0

项目:seniority_list 作者: rubydatasystems 项目源码 文件源码
def monotonic(sequence):
    '''test for stricly increasing array-like input
    May be used to determine when need for no bump,
    no flush routine is no longer required.
    If test is true, and there are no job changes,
    special rights, or furlough recalls,
    then a straight stovepipe job assignment routine may
    be implemented (fast).
    input
        sequence
            array-like input (list or numpy array ok)
    '''
    seq_diff = np.diff(sequence)
    return np.all(seq_diff >= 0)


# GET_MONTH_SLICE
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号