上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 54 下一页
摘要: 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 北叶青藤 阅读(67) 评论(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 北叶青藤 阅读(77) 评论(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 北叶青藤 阅读(480) 评论(0) 推荐(0) 编辑
摘要: Given an array of characters chars, compress it using the following algorithm: Begin with an empty string s. For each group of consecutive repeating c 阅读全文
posted @ 2021-03-11 02:23 北叶青藤 阅读(42) 评论(0) 推荐(0) 编辑
摘要: Case 1: 在一个sorted array里面找出target value的 index,如果target value 出现了多次,返回任何一个就可以了。 Cas 2: Find the smallest number which is greater than the target Case 阅读全文
posted @ 2021-03-07 10:03 北叶青藤 阅读(50) 评论(0) 推荐(0) 编辑
摘要: (This problem is an interactive problem.) A row-sorted binary matrix means that all elements are 0 or 1 and each row of the matrix is sorted in non-de 阅读全文
posted @ 2021-03-07 09:40 北叶青藤 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 给一个phone pad mapping like: {1,{‘A’,'B' , 'C'}}, {2, { 'D' , 'E' , 'F' }} ... {0, {'X', 'Y', 'Z'}}. 按一次1 返回A,连续两次返回B, 连续四次重新返回A. 输入一组数字,不清楚之间间隔,返回所有可能的 阅读全文
posted @ 2021-03-05 00:56 北叶青藤 阅读(78) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers nums and an integer target. Return the number of non-empty subsequences of nums such that the sum of the minimum and maximu 阅读全文
posted @ 2021-03-03 00:16 北叶青藤 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Given the root of a Binary Search Tree and a target number k, return true if there exist two elements in the BST such that their sum is equal to the g 阅读全文
posted @ 2020-12-27 03:43 北叶青藤 阅读(87) 评论(0) 推荐(0) 编辑
摘要: Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first string's permutati 阅读全文
posted @ 2020-12-27 03:24 北叶青藤 阅读(69) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 54 下一页