NillionNetwork/nada-by-example

Select K

開放

#18 建立於 2024年8月14日

 (0 則留言) (0 個反應) (0 位負責人)Python (10 個分叉)auto 404
enhancementhacktoberfesthelp wanted

倉庫指標

星標
 (11 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Request a New Nada Example

Select k values from a list.

Description

Write a Nada program for selecting k values from a list/array.

optional: specify custom orderings as an additional argument to the function.

Specific Requirements

  • Inputs: An array, a number k, and (optionally) an ordering function.
  • Outputs: an array with the k selected values.

貢獻者指南