摘要: 链接:https://leetcode-cn.com/problems/valid-sudoku/ 代码 class Solution { public: bool isValidSudoku(vector<vector<char>>& board) { bool st[9]; // 行 for ( 阅读全文
posted @ 2020-06-26 15:57 景云ⁿ 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/search-insert-position/ 代码 class Solution { public: int searchInsert(vector<int>& nums, int target) { if (nums.siz 阅读全文
posted @ 2020-06-26 15:44 景云ⁿ 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/ 代码 class Solution { public: vector<int> searchRange(vecto 阅读全文
posted @ 2020-06-26 15:43 景云ⁿ 阅读(79) 评论(0) 推荐(0) 编辑