# 标签：LeetCode

## LeetCode刷题之Next Permutation

Problem Implement next permutation, which rearranges numbers into the lexicographically next greater permutati…

## LeetCode刷题之Count And Say

Problem The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2.…

## LeetCode刷题之Happy Number

Problem Write an algorithm to determine if a number is “happy”. A happy number is a number defined…

Problem Given an m * n matrix M initialized with all 0‘s and several update operations. Operations are r…

## LeetCode刷题之Two Sum IV - Input is a BST

Problem Given a Binary Search Tree and a target number, return true if there exist two elements in the BST suc…

## LeetCode刷题之Min Stack

Problem Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push…

## LeetCode刷题之Remove Duplicates from Sorted List II

Problem Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct number…

## LeetCode刷题之K-diff Pairs in an Array

Problem Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the…