摘要: Given a non-empty string s and an abbreviation abbr, return whether the string matches with the given abbreviation. A string such as "word" contains o 阅读全文
posted @ 2021-03-12 14:30 北叶青藤 阅读(91) 评论(0) 推荐(0)
摘要: Given a list of folders, remove all sub-folders in those folders and return in any order the folders after removing. If a folder[i] is located within  阅读全文
posted @ 2021-03-12 13:01 北叶青藤 阅读(73) 评论(0) 推荐(0)
摘要: Given a string s and a list of strings dict, you need to add a closed pair of bold tag <b> and </b> to wrap the substrings in s that exist in dict. If 阅读全文
posted @ 2021-03-12 11:26 北叶青藤 阅读(85) 评论(0) 推荐(0)
摘要: Create a timebased key-value store class TimeMap, that supports two operations. 1. set(string key, string value, int timestamp) Stores the key and val 阅读全文
posted @ 2021-03-12 09:40 北叶青藤 阅读(87) 评论(0) 推荐(0)
摘要: Given two sparse vectors, compute their dot product. Implement class SparseVector: SparseVector(nums) Initializes the object with the vector nums dotP 阅读全文
posted @ 2021-03-12 05:53 北叶青藤 阅读(496) 评论(0) 推荐(0)