出處: https://leetcode.com/explore/interview/card/top-int […]
出處:https://leetcode.com/explore/interview/card/top-inte […]
Given an integer array nums, move all 0‘ […]
出處: https://leetcode.com/submissions/detail/605280323/? […]
出處: https://leetcode.com/explore/interview/card/top-int […]
You are given an integer array prices where&n […]
如 2015-2-8 到 2015-3-3
回傳 2015-2-8 2015-2-9 2015-2-10…2015-3-3
印出 1 – 10000 所有對稱的數字
例如:121、1331 等
基本
duplicate([1,2,3,4,5]) // [1,2,3,4,5,1,2,3,4,5]
進階
duplicateWithTimes([1,2,3,4,5], 3) // [1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5]
其實我用了蠻笨的方法,但最容易懂,把數字變成字串跑 while loop 強者的方法 題目出處: https: […]
