Back to Type Challenges

README

questions/04425-medium-greater-than/README.md

latest1.3 KB
Original Source
<!--info-header-start--><h1>Greater Than </h1><blockquote><p>by ch3cknull <a href="https://github.com/ch3cknull" target="_blank">@ch3cknull</a></p></blockquote><p><a href="https://tsch.js.org/4425/play" target="_blank"></a> </p><!--info-header-end-->

In This Challenge, You should implement a type GreaterThan<T, U> like T > U

Negative numbers do not need to be considered.

For example

ts
GreaterThan<2, 1> //should be true
GreaterThan<1, 1> //should be false
GreaterThan<10, 100> //should be false
GreaterThan<111, 11> //should be true

Good Luck!

<!--info-footer-start-->

<a href="../../README.md" target="_blank"></a> <a href="https://tsch.js.org/4425/answer" target="_blank"></a> <a href="https://tsch.js.org/4425/solutions" target="_blank"></a> <!--info-footer-end-->