MediumRelated Topics: Array / GreedyLeetCode Source
解題想法
題目唯一要注意的點就是 arrays 最大...
21. Merge Two Sorted Lists
You are given the heads of two sorted linked lists l...
110. Balanced Binary Tree
题目描述:
給定一個二元樹的根節點 root,判斷這棵樹是否是高度平衡的。
Example 1:
Inpu...
DAY 30 試題
問題描述
給定一個由字串組成的陣列 strs,要求將其中的異位詞(Anagrams)分組。你可以以任意順序返回分組結果。
範例 1:
輸...
tags: Easy、Sort
Given an array of integers nums, sort the array in increasing o...
題目
1945. Sum of Digits of String After Convert難度: 簡單
題意
給定一字串s與整數k將字串s中的字元按照字母序轉...