LeetCode202——快樂數

我的LeetCode代碼倉:https://github.com/617076674/LeetCode 原題鏈接:https://leetcode-cn.com/problems/happy-number/description/ 題目描述: 知識點:哈希表 思路:用HashSet存儲出現過的數字,一旦出現重複說明該數不是快樂數 JAVA代碼: public class Solution {
相關文章
相關標籤/搜索