03 2018 档案

摘要:Given strings S and T, find the minimum (contiguous) substring W of S, so that T is a subsequence of W. If there is no such window in S that covers al 阅读全文
posted @ 2018-03-31 23:54 Grandyang 阅读(15129) 评论(6) 推荐(1) 编辑
摘要:In a 2D grid from (0, 0) to (N-1, N-1), every cell contains a 1, except those cells in the given list mines which are 0. What is the largest axis-alig 阅读全文
posted @ 2018-03-30 23:28 Grandyang 阅读(4641) 评论(0) 推荐(0) 编辑
摘要:Given a chemical formula (given as a string), return the count of each atom. The atomic element always starts with an uppercase character, then zero o 阅读全文
posted @ 2018-03-28 23:44 Grandyang 阅读(5225) 评论(3) 推荐(0) 编辑
摘要:A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one p 阅读全文
posted @ 2018-03-26 23:25 Grandyang 阅读(12233) 评论(1) 推荐(0) 编辑
摘要:Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary representation 阅读全文
posted @ 2018-03-24 23:55 Grandyang 阅读(4180) 评论(0) 推荐(1) 编辑
摘要:Given an integer array, return the k-th smallest distance among all the pairs. The distance of a pair (A, B) is defined as the absolute difference bet 阅读全文
posted @ 2018-03-22 23:48 Grandyang 阅读(8473) 评论(6) 推荐(0) 编辑
摘要:Github中单个文件的大小限制是100MB,为了能突破这个限制,我们需要使用Git Large File Storage这个工具,参见这个官方帖子,但是按照其给的步骤,博主未能成功上传超大文件,那么这里就给出自己成功的步骤吧: 阅读全文
posted @ 2018-03-20 07:06 Grandyang 阅读(2723) 评论(0) 推荐(0) 编辑
摘要:Special binary strings are binary strings with the following two properties: The number of 0's is equal to the number of 1's. Every prefix of the bina 阅读全文
posted @ 2018-03-19 23:56 Grandyang 阅读(6334) 评论(2) 推荐(1) 编辑
摘要:A Range Module is a module that tracks ranges of numbers. Your task is to design and implement the following interfaces in an efficient manner. addRan 阅读全文
posted @ 2018-03-16 23:53 Grandyang 阅读(5785) 评论(0) 推荐(0) 编辑
摘要:Given two lists A and B, and B is an anagram of A. B is an anagram of A means B is made by randomizing the order of the elements in A. We want to find 阅读全文
posted @ 2018-03-14 23:53 Grandyang 阅读(4236) 评论(0) 推荐(0) 编辑
摘要:We are given a list schedule of employees, which represents the working time for each employee. Each employee has a list of non-overlapping Intervals, 阅读全文
posted @ 2018-03-12 22:49 Grandyang 阅读(8976) 评论(0) 推荐(0) 编辑
摘要:Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo 阅读全文
posted @ 2018-03-10 23:55 Grandyang 阅读(7195) 评论(4) 推荐(1) 编辑
摘要:Given a set of keywords words and a string S, make all appearances of all keywords in S bold. Any letters between <b> and </b> tags become bold. The r 阅读全文
posted @ 2018-03-08 23:54 Grandyang 阅读(5954) 评论(0) 推荐(0) 编辑
摘要:Given an undirected graph, return true if and only if it is bipartite. Recall that a graph is bipartite if we can split it's set of nodes into two ind 阅读全文
posted @ 2018-03-06 22:26 Grandyang 阅读(12984) 评论(4) 推荐(1) 编辑
摘要:An integer interval [a, b] (for integers a < b) is a set of all consecutive integers from a to b, including a and b. Find the minimum size of a set S 阅读全文
posted @ 2018-03-03 23:20 Grandyang 阅读(4188) 评论(0) 推荐(2) 编辑

Fork me on GitHub