C++/C语言基础 对下列语句正确的描述是? const int *x; //① int * const x; //② 答案:语句②的含义是指针变量x不能更改 解析:const修饰 * 左侧的时候,表示指向的数据类型为常量;当con…
分类:Algorithm
[leetcode]题目解析(190612)
Surrounded Regions 题目描述 Given a 2D board containing’X’and’O’, capture all regions surrounded by&…
[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 …