摘要:
链接:https://leetcode-cn.com/problems/valid-sudoku/ 代码 class Solution { public: bool isValidSudoku(vector<vector<char>>& board) { bool st[9]; // 行 for ( 阅读全文
摘要:
链接:https://leetcode-cn.com/problems/search-insert-position/ 代码 class Solution { public: int searchInsert(vector<int>& nums, int target) { if (nums.siz 阅读全文
摘要:
链接:https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/ 代码 class Solution { public: vector<int> searchRange(vecto 阅读全文