随笔分类 -  Java

摘要:Given a string S, count the number of distinct, non-empty subsequences of S . Since the result may be large, return the answer modulo 10^9 + 7. Exampl 阅读全文 »
posted @ 2019-03-27 22:34 Veritas_des_Liberty 阅读(270) 评论(0) 推荐(0) 编辑
摘要:这是课程里给的代码,自己看着讲义在里面加了些注释。 阅读全文 »
posted @ 2019-03-12 11:37 Veritas_des_Liberty 阅读(238) 评论(0) 推荐(0) 编辑
摘要:完整的类定义: 完整的接口定义: 有三种方法要求固定的声明方式 完整的java源文件 阅读全文 »
posted @ 2019-03-06 18:04 Veritas_des_Liberty 阅读(215) 评论(0) 推荐(0) 编辑
摘要:用“埃氏筛法”求2~10000以内的素数。2~10000以内的数,先去掉2的倍数,再去掉3的倍数,再去掉4的倍数,……依此类推,最后剩下的就是素数。 Code: 阅读全文 »
posted @ 2019-03-06 15:54 Veritas_des_Liberty 阅读(278) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示