Description Given a 2D grid, each cell is either a wall 2, an house 1 or empty 0 (the number zero, one, two), find a place to build a post office so t ...
分类:
其他好文 时间:
2019-12-22 00:45:14
阅读次数:
75
Description Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible ...
分类:
其他好文 时间:
2019-12-21 22:56:17
阅读次数:
82
Description Description Given two strings S and T. Count the number of distinct subsequences of S which equals T. A subsequence of a string is a new s ...
分类:
其他好文 时间:
2019-12-21 22:46:20
阅读次数:
101
Description Description Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is count ...
分类:
其他好文 时间:
2019-12-21 22:27:54
阅读次数:
111
Description Description Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. Clarification What's ...
分类:
其他好文 时间:
2019-12-21 22:27:26
阅读次数:
80
Description Description Given a string, find length of the longest repeating subsequence such that the two subsequence don’t have same string characte ...
分类:
其他好文 时间:
2019-12-21 22:26:52
阅读次数:
71
Description Description There are n coins in a line, and value of i-th coin is values[i]. Two players take turns to take a coin from one of the ends o ...
分类:
其他好文 时间:
2019-12-21 22:24:15
阅读次数:
77
Description Description There are n coins in a line. Two players take turns to take one or two coins from right side until there are no more coins lef ...
分类:
其他好文 时间:
2019-12-21 22:16:37
阅读次数:
104
Description Description Divide two integers without using multiplication, division and mod operator. If it will overflow(exceeding 32-bit signed integ ...
分类:
其他好文 时间:
2019-12-21 20:28:53
阅读次数:
82
链接: https://codeforces.com/contest/1278/problem/B 题意: You are given two integers a and b. You can perform a sequence of operations: during the first o ...
分类:
其他好文 时间:
2019-12-21 11:44:51
阅读次数:
107