摘要:
The count-and-say sequence is the sequence of integers with the first five terms as following: 1 is read off as "one 1" or 11.11 is read off as "two 1 阅读全文
posted @ 2017-11-17 21:09
zeroingToOne
阅读(153)
评论(0)
推荐(0)
摘要:
Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in th 阅读全文
posted @ 2017-11-17 16:44
zeroingToOne
阅读(449)
评论(0)
推荐(0)
摘要:
Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return -1. For 阅读全文
posted @ 2017-11-17 10:52
zeroingToOne
阅读(419)
评论(0)
推荐(0)