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)*
2026年9月30日 · 技術、演算法 · 5 分鐘閱讀Leetcode 26. 移除已排序陣列中的重複項題目 一樣不免俗地,先看題目。 Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only
2026年10月5日 · 技術、演算法 · 3 分鐘閱讀Leetcode 27. 移除陣列中的指定元素題目 先看題目。 Given an integer array nums and an integer val , remove all occurrences of val in nums in-place . The order of the elements may be changed. T
2026年10月8日 · 技術、演算法 · 3 分鐘閱讀Leetcode 1768. 交替合併字串題目 You are given two strings word1 and word2 . Merge the strings by adding letters in alternating order, starting with word1 . If a string is longer t