type-challenges

Collection of TypeScript type challenges with online judge

MIT License

Stars
40.8K

TypeScript ts-toolbelt, utility-types, simplytyped

           (1)13Hello World (13)4Pick 7Readonly 11Tuple to Object 14First of Array 18Length of Tuple 43Exclude 189Awaited 268If 533Concat 898Includes 3057Push 3060Unshift 3312Parameters (98)2Get Return Type 3Omit 8Readonly 2 9Deep Readonly 10Tuple to Union 12Chainable Options 15Last of Array 16Pop 20Promise.all 62Type Lookup 106Trim Left 108Trim 110Capitalize 116Replace 119ReplaceAll 191Append Argument 296Permutation 298Length of String 459Flatten 527Append to object 529Absolute 531String to Union 599Merge 612KebabCase 645Diff 949AnyOf 1042IsNever 1097IsUnion 1130ReplaceKeys 1367Remove Index Signature 1978Percentage Parser 2070Drop Char 2257MinusOne 2595PickByType 2688StartsWith 2693EndsWith 2757PartialByKeys 2759RequiredByKeys 2793Mutable 2852OmitByType 2946ObjectEntries 3062Shift 3188Tuple to Nested Object 3192Reverse 3196Flip Arguments 3243FlattenDepth 3326BEM style string 3376InorderTraversal 4179Flip 4182Fibonacci Sequence 4260 4425Greater Than 4471Zip 4484IsTuple 4499Chunk 4518Fill 4803Trim Right 5117Without 5140Trunc 5153IndexOf 5310Join 5317LastIndexOf 5360Unique 5821MapTypes 7544Construct Tuple 8640Number Range 8767Combination 8987Subsequence 9142CheckRepeatedChars 9286FirstUniqueCharIndex 9616Parse URL Params 9896GetMiddleElement 9898Appear only once 9989Count Element Number To Object 10969Integer 16259ToPrimitive 17973DeepMutable 18142All 18220Filter 21104FindAll 21106Combination key type 21220Permutations of Tuple 25170Replace First 25270Transpose 26401JSON Schema to TypeScript 27133Square 27152Triangular number 27862CartesianProduct 27932MergeAll 27958CheckRepeatedTuple 28333Public Type 29650ExtractToObject 29785Deep Omit 30301IsOdd 30430Tower of hanoi 30958Pascal's triangle 30970 34007Compare Array Length (53)6Simple Vue 17Currying 1 55Union to Intersection 57Get Required 59Get Optional 89Required Keys 90Optional Keys 112Capitalize Words 114CamelCase 147C-printf Parser 213Vue Basic Props 223IsAny 270Typed Get 300String to Number 399Tuple Filter 472Tuple to Enum Object 545printf 553Deep object to unique 651Length of String 2 730Union to Tuple 847String Join 956DeepPick 1290Pinia 1383Camelize 2059Drop String 2822Split 2828ClassPublicKeys 2857IsRequiredKey 2949ObjectFromEntries 4037IsPalindrome 5181Mutable Keys 5423Intersection 6141Binary to Decimal 7258Object Key Paths 8804Two Sum 9155ValidDate 9160Assign 9384Maximum 9775Capitalize Nest Object Keys 13580Replace Union 14080FizzBuzz 14188Run-length encoding 15260Tree path array 19458SnakeCase 25747IsNegativeNumber 28143OptionalUndefined 30178Unique Items 30575BitwiseXOR 31797Sudoku 31824Length of String 3 32427Unbox 32532Binary Addition 34286Take Elements (17)5Get Readonly Keys 151Query String Parser 216Slice 274Integers Comparator 462Currying 2 476Sum 517Multiply 697Tag 734Inclusive Range 741Sort 869DistributeUnions 925Assert Array Index 6228JSON Parser 7561Subtract 31447CountReversePairs 31997Parameter Intersection 33345Dynamic Route

()

()

:

Issue

Thanks

@hardfist @MeCKodo @sinoon

@kawamataryo

Contributors

MIT