上一页 1 ··· 107 108 109 110 111 112 113 114 115 ··· 496 下一页
摘要: Implement permutation type that transforms union types into the array that includes permutations of unions. type perm = Permutation<'A' | 'B' | 'C'>; 阅读全文
posted @ 2022-09-15 01:36 Zhentiw 阅读(51) 评论(0) 推荐(0)
摘要: Write a function that takes in an array of unique integers and returns an array of all permutations of those integers in no particular order. If the i 阅读全文
posted @ 2022-09-15 01:11 Zhentiw 阅读(38) 评论(0) 推荐(0)
摘要: Compute the length of a string literal, which behaves like String#length. /* _____________ Your Code Here _____________ */ type LengthOfString<S exten 阅读全文
posted @ 2022-09-14 15:20 Zhentiw 阅读(27) 评论(0) 推荐(0)
摘要: If the server starts on a different port, such as 3001 or 3002, this is because another process is currently running on port 3000. This is ok, but you 阅读全文
posted @ 2022-09-14 14:09 Zhentiw 阅读(29) 评论(0) 推荐(0)
摘要: For given function type Fn, and any type A (any in this context means we don't restrict the type, and I don't have in mind any type 😉) create a gener 阅读全文
posted @ 2022-09-13 21:06 Zhentiw 阅读(28) 评论(0) 推荐(0)
摘要: Implement ReplaceAll<S, From, To> which replace the all the substring From with To in the given string S For example type replaced = ReplaceAll<'t y p 阅读全文
posted @ 2022-09-13 20:57 Zhentiw 阅读(66) 评论(0) 推荐(0)
摘要: package main import ( "bufio" "fmt" "os" "strings" ) type name struct { fname []byte lname []byte } func main() { fmt.Print("File path ") var filename 阅读全文
posted @ 2022-09-13 20:39 Zhentiw 阅读(25) 评论(0) 推荐(0)
摘要: Implement Replace<S, From, To> which replace the string From with To once in the given string S For example type replaced = Replace<'types are fun!', 阅读全文
posted @ 2022-09-12 16:13 Zhentiw 阅读(44) 评论(0) 推荐(0)
摘要: Implement Capitalize<T> which converts the first letter of a string to uppercase and leave the rest as-is. For example type capitalized = Capitalize<' 阅读全文
posted @ 2022-09-12 15:58 Zhentiw 阅读(52) 评论(0) 推荐(0)
摘要: ary := [...]int {1,2,3,4} // array sli := []int {1,2,3,4}// slice 阅读全文
posted @ 2022-09-12 00:05 Zhentiw 阅读(12) 评论(0) 推荐(0)
上一页 1 ··· 107 108 109 110 111 112 113 114 115 ··· 496 下一页