摘要:
class Solution { public: bool searchMatrix(vector>& matrix, int target) { int m = matrix.size(); if (!m) { return false; } int n = matrix.at(0)... 阅读全文
摘要:
Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell. The distance between two adjacent cells is 1. Example 1: Input: 阅读全文
摘要:
将 I am Beijing. 倒序为Beijing. like I 用栈实现: 1 #include <iostream> 2 #include <stack> 3 #include <string> 4 using namespace std; 5 int main() 6 { 7 string 阅读全文