摘要: 题目: Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. 计算字符串中的段数,其中段定义为非空格字符的连续 阅读全文
posted @ 2018-09-05 20:51 chan_ai_chao 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 题目: You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. 您想要以楼梯形状形成总共n个硬币,其中每个第k行必须 阅读全文
posted @ 2018-09-05 19:47 chan_ai_chao 阅读(83) 评论(0) 推荐(0) 编辑