摘要: 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 a g 阅读全文
posted @ 2020-07-03 11:45 Schwifty 阅读(146) 评论(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 incrementing n  阅读全文
posted @ 2020-07-03 11:15 Schwifty 阅读(132) 评论(0) 推荐(0)
摘要: Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the string 阅读全文
posted @ 2020-07-03 10:15 Schwifty 阅读(121) 评论(0) 推荐(0)