摘要: Repeated Substring Pattern Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the su 阅读全文
posted @ 2018-05-23 23:01 SkyeAngel 阅读(86) 评论(0) 推荐(0) 编辑
摘要: Ransom Note Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true 阅读全文
posted @ 2018-05-23 20:59 SkyeAngel 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words. It is guaranteed there is at leas 阅读全文
posted @ 2018-05-23 16:25 SkyeAngel 阅读(284) 评论(0) 推荐(0) 编辑
摘要: Count Binary Substrings 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 阅读全文
posted @ 2018-05-23 11:04 SkyeAngel 阅读(132) 评论(0) 推荐(0) 编辑