Skip to content

【算法】给定一个长度为m的数组和一个组合大小n,求C(m,n)的所有组合 #1

Description

@0xbitboy

业务需求描述

  • 功能模块每日限免,支持配置 m 个功能,展示 n 个
  • 每天显示不同的组合

分析

  • 需要一个算法对n个功能,进行一个C(n,m)的组合
  • 取每天的凌晨的秒数 hash到不同的组合中。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions