2019年7月9日
摘要: 问题描述: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occ 阅读全文
posted @ 2019-07-09 16:27 狂奔的蜗牛163 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 问题描述: Count the number of prime numbers less than a non-negative number, n. Example: 思路: 1、最暴力的方法就是循环遍历,用两个for循环嵌套实现,但是整个代码运行时间太长,提交通不过 2、采用'Sieve of 阅读全文
posted @ 2019-07-09 10:13 狂奔的蜗牛163 阅读(233) 评论(0) 推荐(0) 编辑