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: […]
要求如下: 1. urls 為所有等待執行完畢的 request 2. 最多同時執行 maxNum 個 req […]
方法一 使用遞迴 方法二 array.reduce 技巧 1. arguments 是一個特殊的 Class […]
