Back to Type Challenges

README

questions/31824-hard-length-of-string-3/README.md

latest1.5 KB
Original Source
<!--info-header-start--><h1>Length of String 3 </h1><blockquote><p>by Eosellmay Li <a href="https://github.com/E0SelmY4V" target="_blank">@E0SelmY4V</a></p></blockquote><p><a href="https://tsch.js.org/31824/play" target="_blank"></a> </p><!--info-header-end-->

Implement a type LengthOfString<S> just like Array#length:

Differing to two previous challenges about strings' length, this times the type must support strings about $10^6$ characters long, which makes it more challenging.

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

<a href="../../README.md" target="_blank"></a> <a href="https://tsch.js.org/31824/answer" target="_blank"></a> <a href="https://tsch.js.org/31824/solutions" target="_blank"></a> <hr><h3>Related Challenges</h3><a href="https://github.com/type-challenges/type-challenges/blob/main/questions/00298-medium-length-of-string/README.md" target="_blank"></a> <!--info-footer-end-->