摘要:
题目: Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. 计算字符串中的段数,其中段定义为非空格字符的连续 阅读全文
摘要:
题目: 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行必须 阅读全文