NillionNetwork/nada-by-example

Nth Largest Element of list/array

Aperta

#17 aperta il 14 ago 2024

 (3 commenti) (0 reazioni) (0 assegnatari)Python (10 fork)auto 404
enhancementgood first issuehacktoberfesthelp wanted

Metriche repository

Star
 (11 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor