NillionNetwork/nada-by-example

Nth Largest Element of list/array

开放

#17 创建于 2024年8月14日

 (3 条评论) (0 个反应) (0 位负责人)Python (10 个派生)auto 404
enhancementgood first issuehacktoberfesthelp wanted

仓库指标

星标
 (11 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Request a New Nada Example

Find Nth largest element in list.

Description

Write a Nada program to find the nth largest (or smallest) element in size from a list or array.

optional: extended into multiple dimensions with custom comparators.

Use Case

Describe the use case for this example. Why is it important? How will it benefit other users?

Specific Requirements

  • Inputs: A list/array of SecretIntegers and the n.
  • Outputs: The nth largest (or smallest) value of the list.

贡献者指南