【问题标题】:I need this Algorithom [closed]我需要这个算法[关闭]
【发布时间】:2022-11-21 23:41:29
【问题描述】:

enter image description here

假设一家公司有一个线性数组 A (1920:1970),其中 A[K] 4 包含在 K 年出生的员工人数,为以下任务编写一个模块: 找到刚好有 15 名员工的年份数 NUMBER出生。

【问题讨论】:

    标签: data-structures


    【解决方案1】:

    enter image description here

    1. 设置数=0

    2. 重复 k=1920 到 1970

        if A[K]=15
      
    3. 设置锁=K

      4)退出

    【讨论】:

      猜你喜欢
      • 2013-05-04
      • 2013-04-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-12
      • 1970-01-01
      • 1970-01-01
      • 2021-12-13
      • 2021-12-18
      相关资源
      最近更新 更多