小行星碰撞[https://leetcode.cn/problems/asteroid-collision/] 給定一個(gè)整數(shù)數(shù)組 asteroids,表示在同一行的小行星。對(duì)...
重復(fù)的子字符串[https://leetcode.cn/problems/repeated-substring-pattern/] 給定一個(gè)非空的字符串 s ,檢查是否可以通...
監(jiān)控二叉樹(shù)[https://leetcode-cn.com/problems/binary-tree-cameras/] 給定一個(gè)二叉樹(shù),我們?cè)跇?shù)的節(jié)點(diǎn)上安裝攝像頭。節(jié)點(diǎn)上的...
根據(jù)身高重建隊(duì)列[https://leetcode-cn.com/problems/queue-reconstruction-by-height/] 假設(shè)有打亂順序的一群人站...
對(duì)稱(chēng)的二叉樹(shù)[https://leetcode-cn.com/problems/dui-cheng-de-er-cha-shu-lcof/] 請(qǐng)實(shí)現(xiàn)一個(gè)函數(shù),用來(lái)判斷一棵二叉...
刪除字符串中的所有相鄰重復(fù)項(xiàng)[https://leetcode-cn.com/problems/remove-all-adjacent-duplicates-in-strin...
填充每個(gè)節(jié)點(diǎn)的下一個(gè)右側(cè)節(jié)點(diǎn)指針[https://leetcode.cn/problems/populating-next-right-pointers-in-each-no...
有序數(shù)組的平方[https://leetcode-cn.com/problems/squares-of-a-sorted-array/] 給你一個(gè)按 非遞減順序 排序的整數(shù)數(shù)...
連續(xù)數(shù)組[https://leetcode-cn.com/problems/contiguous-array/] 給定一個(gè)二進(jìn)制數(shù)組, 找到含有相同數(shù)量的 0 和 1 的最長(zhǎng)...
按奇偶排序數(shù)組[https://leetcode-cn.com/problems/sort-array-by-parity/] 給定一個(gè)非負(fù)整數(shù)數(shù)組 A,返回一個(gè)數(shù)組,在該數(shù)...