题目: Given a string containing just the characters '(' and ')', find the length of the longest v…
标签:LeetCode题目解答
230. Kth Smallest Element in a BST
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it.Note: You may …
[LeetCode] Sort List 链表排序
Sort a linked list in O(n log n) time using constant space complexity. Example 1: Input:…
[LeetCode] Repeated String Match 重复字符串匹配
Given two strings A and B, find the minimum number of times A has to be repeated such that B is a subst…
LeetCode | Text Justification
题目: Given an array of words and a length L, format the text such that each line has exactly L c…
LeetCode 166 Fraction to Recurring Decimal
题目描述 Given two integers representing the numerator and denominator of a fraction, return the fraction in strin…
[Leetcode] Word Ladder 单词爬梯
Word Ladder Given two words (beginWord and endWord), and a dictionary, find the length of shortest transformat…
19. Remove Nth Node From End of List
19. Remove Nth Node From End of List 题目 Given a linked list, remove the nth node from the end of list and retu…
[LeetCode] Contains Duplicate II 包含重复值之二
Given an array of integers and an integer k, return true if and only if there are two distinct indices …
[LeetCode] Closest Binary Search Tree Value 最近的二分搜索树的值
Given a non-empty binary search tree and a target value, find the value in the BST that is closest to t…
LeetCode | Remove Duplicates from Sorted Array
题目: Given a sorted array, remove the duplicates in place such that each element appear only once and…
LeetCode之Stack题目汇总
Basic Calculator Implement a basic calculator to evaluate a simple expression string. The expression string ma…