摘要: 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-09 11:43 immjc 阅读(215) 评论(0) 推荐(0)
摘要: Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c. Example 1: Input: 5 Output: True E 阅读全文
posted @ 2017-11-09 10:36 immjc 阅读(190) 评论(0) 推荐(0)