Construct binary tree from preorder and inorder traversal 题目描述 Given preorder and inorder traversal of a tree, construct…
分类:Leetcode
[leetcode]题目解析(190524)
valid sudoku 题目描述 Determine if a Sudoku is valid, according to: Sudoku Puzzles – The Rules.The Sudoku board could …
[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 allowe…
[leetcode]题目解析(190423)
Remove duplicates from sorted list 题目描述 Given a sorted linked list, delete all duplicates such that each element appear …
[leetcode]题目解析(190422)
unique path 题目描述 A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram be…
[Leetcode]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 assum…