logo头像

不忘初心,奋力前行

leetcode题目解析(190513)

Search for a range题目描述Given a sorted array of integers, find the starting and ending position of a given target value...

leetcode题目解析(190425)

Remove Duplicates from sorted Array II题目描述Follow up for “Remove Duplicates”:What if duplicates are allowed at most tw...

trapping rain water

Trapping Rain Water题目描述Given n non-negative integers representing an elevation map where the width of each bar is 1, ...

jump game

Jump Game题目说明Given an array of non-negative integers, you are initially positioned at the first index of the array.Ea...

remove duplicates from sorted list

Remove duplicates from sorted list题目描述Given a sorted linked list, delete all duplicates such that each element appear...

merge sorted array

merge sorted array题目描述Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume...

n queens ii

n queens ii题目描述Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number o...