Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 1.39 KB

question.md

File metadata and controls

19 lines (13 loc) · 1.39 KB

Maximum hard #array

by ch3cknull @ch3cknull

Take the Challenge

Description

Implements a type Maximum, get array like type T, and return max value in T

0 <= T[number] < 1000, so nagative number not considered.

If T is a empty array [], just reutrn never

Maximum<[]> // never
Maximum<[0, 2, 1]> // 2
Maximum<[1, 20, 200, 150]> // 200

Advanced

Can you implement type Minimum inspired by Maximum?


Back Share your Solutions Check out Solutions