EasyRelated Topics: Array / Hash Table / String / CountingLeetCode Source
解題想法...
解題程式碼
var characterReplacement = function(s, k) {
let maxLength = 1;
let...
前言
今天我們要來挑戰一道經典又實用的題目——Set Matrix Zeroes(設定矩陣零)!這題是 Medium 難度,但它考驗的是我們如何在有限的空間內...
解題程式碼
var subsetsWithDup = function (nums) {
const result = [[]];
const subs...
題目
179. Largest Number難度: 中等
題意
給定一整數陣列nums,排序好nums使所有整數串接(concatenate)起來所代表的數最大...
題目
1367. Linked List in Binary Tree難度: 中等偏難
題意
給定一串連鏈接head及一二元樹root,求head是否存在於二元...