摘要:
Floyd判圈算法 leetcode 上 编号为202 的happy number 问题,有点意思。happy number 的定义为: A happy number is a number defined by the following process: Starting with any p... 阅读全文
posted @ 2015-10-15 22:58
汪刚
阅读(499)
评论(0)
推荐(0)
摘要:
今天在leetcode看到一个题目:Majority Element,题目内容是: Given an array of size n, find the majority element. The majority element is the element that appears more t... 阅读全文
posted @ 2015-10-15 22:20
汪刚
阅读(1519)
评论(0)
推荐(0)