题目描述: 给定一个只包括 ‘(‘,’)’,'{‘,’}’,'[‘,’]’ 的字符串,判断字符串是否…
标签:LeetCode
674. 最长连续递增序列
伪装成LIS的简单题目 class Solution(object): def findLengthOfLCIS(self, nums): """ :type nums: List[int] :rtype: int ""…
Day10. Perfect Number(507)
问题描述 We define the Perfect Number is a positive integer that is equal to the sum of all its positive divisors …
Leetcode94——Binary Tree Inorder Traversal
文章作者:Tyan 博客:noahsnail.com | CSDN | 简书 1. 问题描述 Given a binary tree, return the inorder…
无重复字符的最长子串
无重复字符的最长子串 给定一个字符串,找出不含有重复字符的最长子串的长度。 输入: "abcabcbb" 输出: 3 解释: 无重复字符的最长子串是 "abc",其长度为 3。 输入: "bbbbb" 输出: 1 解释:…
LeetCode677. Map Sum Pairs
Analysis Brute-force solution Apparently, a straightforward brute-force solution would be to store every {key,…
125. Valid Palindrome My Submissions Question
/* 125. Valid Palindrome My Submissions Question Total Accepted: 94559 Total Submissions: 401331 Difficulty: E…
Leetcode - Count of Smaller Numbers After Self
My code: import java.util.Arrays; import java.util.List; public class Solution { class Node { int val = 0; int…
360. Sort Transformed Array
Given a sorted array of integers nums and integer values a, b and c. Apply a function of the form f(x) = ax2 +…
Leetcode282. Expression Add Operators
Analysis Oveiously, in order to solve this question, we have to iterate through all of the possible cases at l…
[LeetCode] Construct Binary Tree from Preorder and Inorder Traversal
链接:https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/description/ 难度:Med…
[LeetCode][String][Recursive] 267. Palindrome Permutation II
Problem More LeetCode Discussions Given a string s, return all the palindromic permutations (without duplicate…