2022年10月4日 · 技術、演算法 · 2 分鐘閱讀Leetcode 747. 至少是其他數字兩倍的最大數題目 原題目 + 英文: - You are given an integer array nums where the largest integer is unique. - Determine whether the largest element in the array is at lea
2022年10月4日 · 技術、演算法 · 2 分鐘閱讀Leetcode 4. 尋找兩個已排序陣列的中間值題目 原題目 + 英文: - Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. - The overall run tim
2022年10月5日 · 技術、演算法 · 1 分鐘閱讀Leetcode 1480. 一維陣列累積和題目 原題目 + 英文: - Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]). - Return the running sum of nums. + 中
2022年10月5日 · 技術、演算法 · 1 分鐘閱讀Leetcode 1464. 一個陣列中兩個元素的最大乘積題目 原題目 + 英文: - Given the array of integers nums, you will choose two different indices i and j of that array. Return the maximum value of (nums[i]-1)*