标签: leetcode
-
221. Maximal Square
Given a 2D binary matrix filled with 0’s and 1’s, find …
-
222. Count Complete Tree Nodes
Given a complete binary tree, count the number of nodes…
-
216. Combination Sum III
Find all possible combinations of k numbers that add up…
-
215. Kth Largest Element in an Array
Find the kth largest element in an unsorted array. Note…
-
210. Course Schedule II
There are a total of n courses you have to take, labele…
-
409. Longest Palindrome
Given a string which consists of lowercase or uppercase…
-
142. Linked List Cycle II
Given a linked list, return the node where the cycle be…
-
leetcode416. Partition Equal Subset Sum
这和0-1背包问题是完全一样的,01背包问题是指假设有n个物品,每个物品中为weight[i],假设背包的承重…
-
leetcode409.Longest Palindrome
这是一道easy难度的题目,但是一次性写对也有挑战。直观来看,我们立刻就能想到统计字符串中每个字符出现的次数,…
-
LeetCode 313. Super Ugly Number
Write a program to find the nth super ugly number.