## [LeetCode] Remove Element 移除元素

Given an array and a value, remove all instances of that value in place and return the new length. The …

## [LeetCode] Remove Duplicates from Sorted Array 有序数组中去除重复项, Remove Duplicates from Sorted List

Given a sorted array nums, remove the duplicates in-place such that each element appear …

## [LeetCode] Reverse Nodes in k-Group 每k个一组翻转链表

Given a linked list, reverse the nodes of a linked list k at a time and return its modified l…

## [LeetCode] Swap Nodes in Pairs 成对交换节点

Given a linked list, swap every two adjacent nodes and return its head. Example: Given 1->2->…

## [LeetCode] Generate Parentheses 生成括号, Longest Valid Parentheses 最长有效括号

Given n pairs of parentheses, write a function to generate all combinations of well-formed pa…

## [LeetCode] Merge k Sorted Lists 合并k个有序链表,Merge Two Sorted Lists 混合插入有序链表

Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. &nbs…

## [LeetCode] Merge Two Sorted Lists 混合插入有序链表

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing toge…

## [LeetCode] Valid Parentheses 验证括号

Given a string containing just the characters '(', ')', '{', '}', '[' and…

## [LeetCode] Remove Nth Node From End of List 移除链表倒数第N个节点

Given a linked list, remove the nth node from the end of list and return its head. For example, Given l…

## [LeetCode] 4Sum 四数之和,Two Sum,3Sum,3Sum

Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target…