摘要: 题目: Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You m 阅读全文
posted @ 2017-03-27 10:29 panini 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 题目: Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has 阅读全文
posted @ 2017-03-27 08:03 panini 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a move is incrementin 阅读全文
posted @ 2017-03-27 07:38 panini 阅读(161) 评论(0) 推荐(0) 编辑