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
筆記
LeetCode、資料結構
2026年10月8日 · 技術、演算法 · 3 分鐘閱讀
題目 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
2026年10月5日 · 技術、演算法 · 3 分鐘閱讀
題目 先看題目。 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年9月30日 · 技術、演算法 · 5 分鐘閱讀
題目 一樣不免俗地,先看題目。 Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only
2022年10月5日 · 技術、演算法 · 1 分鐘閱讀
題目 原題目 + 英文: - 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)*
2022年10月5日 · 技術、演算法 · 1 分鐘閱讀
題目 原題目 + 英文: - 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月4日 · 技術、演算法 · 2 分鐘閱讀
題目 原題目 + 英文: - 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月4日 · 技術、演算法 · 2 分鐘閱讀
題目 原題目 + 英文: - You are given an integer array nums where the largest integer is unique. - Determine whether the largest element in the array is at lea