摘要:
Given a string s, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible stri 阅读全文
阅读排行榜
[LeetCode] 159. Longest Substring with At Most Two Distinct Characters_Medium tag: Two pointers
2021-08-10 09:21 by Johnson_强生仔仔, 39 阅读, 收藏,
摘要:
Given a string s, return the length of the longest substring that contains at most two distinct characters. Example 1: Input: s = "eceba" Output: 3 Ex 阅读全文
[LeetCode] 59. Spiral Matrix II_Medium tag: array, DFS
2021-08-22 07:23 by Johnson_强生仔仔, 38 阅读, 收藏,
摘要:
Given a positive integer n, generate an n x n matrix filled with elements from 1 to n2 in spiral order. Example 1: Input: n = 3 Output: [[1,2,3],[8,9, 阅读全文
[LeetCode] 663. Equal Tree Partition_Medium tag: DFS, divide and conquer
2021-08-21 22:18 by Johnson_强生仔仔, 38 阅读, 收藏,
摘要:
Given the root of a binary tree, return true if you can partition the tree into two trees with equal sums of values after removing exactly one edge on 阅读全文
[LeetCode] 857. Minimum Cost to Hire K Workers_Hard tag: sort, heap
2021-08-16 10:12 by Johnson_强生仔仔, 38 阅读, 收藏,
摘要:
There are n workers. You are given two integer arrays quality and wage where quality[i] is the quality of the ith worker and wage[i] is the minimum wa 阅读全文
浙公网安备 33010602011771号