读题: 个人感觉这题的难点就是读题了,count-and-say,给出了前5个的例子 初始从1开始,读作“1个1”,即11 接着读11,读作“2个1”,即21 接着读21,读作“1个2,1个1”,即1211 接着读1211,读作“1个1,1个2,2个1”,即111221 如果能读明白题,就基本解得出 ...
分类:
其他好文 时间:
2019-11-09 09:49:56
阅读次数:
113
题目描述: The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ... 1 is read off as"one 1"or 11.11 is read ...
分类:
其他好文 时间:
2019-11-02 17:33:40
阅读次数:
78
The count-and-say sequence is the sequence of integers with the first five terms as following: 1 is read off as "one 1" or 11.11 is read off as "two 1 ...
分类:
其他好文 时间:
2019-10-19 20:30:16
阅读次数:
105
多态:一个对象有多种形态 是方法的多态,和属性无关 有继承关系、重写方法、父类引用 指向 子类对象 静态方法不支持多态 举例, 有父类Dog,属性name="dog",普通方法say,静态方法move; 子类SDog,属性name="sdog",重写了普通方法say,重写了静态方法move,另外有自 ...
分类:
编程语言 时间:
2019-10-13 18:43:14
阅读次数:
80
Difficulty:easy More:【目录】LeetCode Java实现 Description https://leetcode.com/problems/count-and-say/ The count-and-say sequence is the sequence of intege ...
分类:
其他好文 时间:
2019-10-13 13:09:27
阅读次数:
85
基本Socket例子 做了这么久的铺垫,是时候该与远方的她say hi啦 Server Client 先启动server端,再启动client端,看结果 此时一定要停下来,让学生自己写一遍! 循环收发数据 第一次接触就这么交待了,只说了一句话,感觉不够过瘾,如何实现更多的交互呢?简单,只需要让客户端 ...
分类:
其他好文 时间:
2019-10-12 11:18:51
阅读次数:
98
https://github.com/golang/go/wiki/LearnConcurrency 实例1: 输出: 可以看到只输出了4个world就退出了,因为main执行完say("hello")就退出了 修改如下: 输出: world完整输出了 ...
分类:
其他好文 时间:
2019-10-10 11:06:41
阅读次数:
70
Well, to begin with, I'd like to say thank you to MIT open courses twice. It's their generosity that gives me the priviledge to enjoy the most outstan ...
分类:
其他好文 时间:
2019-10-05 22:27:34
阅读次数:
131
We are given two arrays and of words. Each word is a string of lowercase letters. Now, say that?word is a subset of word if every letter in occurs in ...
分类:
其他好文 时间:
2019-10-05 00:40:31
阅读次数:
110
Edit: I suddenly found that this theorem is called Abel Identity. And the proof here is exactly the same as what he did. At first, I'd like to say tha ...
分类:
其他好文 时间:
2019-10-04 21:03:48
阅读次数:
98