摘要: 问题: 给定3个字符串, 由s1和s2构成s3。 若可以做到,返回true,否则返回false。 Example 1: Input: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac" Output: true Example 2: Input: s1 = " 阅读全文
posted @ 2021-03-25 15:05 habibah_chang 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 问题: 求从0 到 小于给定n 的正整数中,有多少个素数(质数)。 素数:只能被 自己 和 1 整除。(1和0不是) Example 1: Input: n = 10 Output: 4 Explanation: There are 4 prime numbers less than 10, the 阅读全文
posted @ 2021-03-25 13:37 habibah_chang 阅读(26) 评论(0) 推荐(0) 编辑