题目描述 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. F…
分类:LeetCode题目解答
[LeetCode] Remove Duplicates from Sorted List II 移除有序链表中的重复项之二
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct&nb…
[LeetCode] Basic Calculator 基本计算器
Implement a basic calculator to evaluate a simple expression string. The expression string may contain …
LeetCode | Wildcard Matching
题目: Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single ch…
LeetCode | Reverse Linked List II
题目: Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Gi…
LeetCode 122 Best Time to Buy and Sell Stock II
题目描述 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorit…
179. Largest Number
Given a list of non negative integers, arrange them such that they form the largest number. Example 1: Input: …
143. Reorder List
欢迎fork and star:Nowcoder-Repository-github 143. Reorder List 题目: Given a singly linked list L: L0→L1→…→Ln-1→Ln…
[LeetCode] Global and Local Inversions 全局与局部的倒置
We have some permutation A of [0, 1, ..., N - 1], where N is the length of&nbs…
LeetCode | Longest Common Prefix
题目: Write a function to find the longest common prefix string amongst an array of strings. 思路: 首先找出所有字符串的最小长度。…
[LeetCode] Wiggle Sort 摆动排序
Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= n…
[Java] 浅析Google Guava Multimap
类关系 ArrayListMultiMap.java Multimap <I> | | AbstractMultimap <A> Serializable <I> |_________…