1. 首页
  2. 考试认证
  3. 其它
  4. leetcode士兵 365DaysLeetCode 每天至少在LeetCode上做1道题的个人挑战

leetcode士兵 365DaysLeetCode 每天至少在LeetCode上做1道题的个人挑战

上传者: 2024-10-08 07:25:00上传 ZIP文件 5.85KB 热度 11次
利特码我的个人目标是每天至少完成一次LeetCode编程挑战,持续一年!注意*这个项目现在不会在这里更新。可以在以下位置找到新链接计算团队数量There are n soldiers standing in a line. Each soldier is assigned a unique rating value. You have to form a team of 3 soldiers amongst them under the following rules: Choose 3 soldiers with index (i, j, k) with rating (rating[i], rating[j], rating[k]). A team is valid if: (rating[i] < rating[j] < rating[k]) or (rating[i] > rating[j] > rating[k]) where (0 <= i < j < k < n). Return the number of teams you can form given
下载地址
用户评论