![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
剑指offer
ModestYjx
At ordinary times, nothing is worth mentioning in front of buddhahood and earnestness!
任何事在佛系和认真面前都不值一提!
展开
-
剑指 Offer 04. 二维数组中的查找
剑指 Offer 04. 二维数组中的查找 传送门 https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof/ 结题思路 思路1:先将此数与二维数组的每行头元素值判断大小,大于等于其值再接着比对那行的值。 class Solution { public: bool findNumberIn2DArray(vector<vector<int>>& matrix, int target) {原创 2020-08-08 22:28:42 · 104 阅读 · 0 评论 -
剑指 Offer 03. 数组中重复的数字
剑指 Offer 03. 数组中重复的数字 传送门 https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof/ 结题思路 // class Solution { // public: // int findRepeatNumber(vector<int>& nums) { // for(int i = 0; i < nums.size(); i++) // {原创 2020-08-08 21:57:06 · 85 阅读 · 0 评论