Surrounded Regions 题目描述 Given a 2D board containing’X’and’O’, capture all regions surrounded by&…
分类:Leetcode
[leetcode]题目解析(190610)
Edit distance(dynamic programing) 题目描述 Given two words word1 and word2, find the minimum number of steps required to con…
[leetcode]题目解析(190609)
Construct binary tree from preorder and inorder traversal 题目描述 Given preorder and inorder traversal of a tree, construct…
[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.…