上一页 1 ··· 103 104 105 106 107 108 109 110 111 ··· 492 下一页
摘要: 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 阅读(53) 评论(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 阅读(18) 评论(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 阅读(30) 评论(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 阅读(35) 评论(0) 推荐(0)
摘要: ary := [...]int {1,2,3,4} // array sli := []int {1,2,3,4}// slice 阅读全文
posted @ 2022-09-12 00:05 Zhentiw 阅读(10) 评论(0) 推荐(0)
摘要: The contenteditable global attribute is an enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies 阅读全文
posted @ 2022-09-11 22:16 Zhentiw 阅读(22) 评论(0) 推荐(0)
摘要: Implement Trim<T> which takes an exact string type and returns a new string with the whitespace from both ends removed. For example type trimmed = Tri 阅读全文
posted @ 2022-09-11 21:28 Zhentiw 阅读(20) 评论(0) 推荐(0)
摘要: Implement TrimLeft<T> which takes an exact string type and returns a new string with the whitespace beginning removed. For example type trimed = TrimL 阅读全文
posted @ 2022-09-11 20:59 Zhentiw 阅读(27) 评论(0) 推荐(0)
摘要: Sometimes, you may want to lookup for a type in a union to by their attributes. In this challenge, we would like to get the corresponding type by sear 阅读全文
posted @ 2022-09-11 18:57 Zhentiw 阅读(17) 评论(0) 推荐(0)
摘要: Type the function PromiseAll that accepts an array of PromiseLike objects, the returning value should be Promise<T> where T is the resolved result arr 阅读全文
posted @ 2022-09-09 14:51 Zhentiw 阅读(28) 评论(0) 推荐(0)
上一页 1 ··· 103 104 105 106 107 108 109 110 111 ··· 492 下一页