12 2018 档案

摘要:题目: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, w 阅读全文
posted @ 2018-12-30 15:33 silentteller 阅读(296) 评论(0) 推荐(0)
摘要:题目: According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician J 阅读全文
posted @ 2018-12-28 19:40 silentteller 阅读(285) 评论(0) 推荐(0)
摘要:题目: Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: 分析: 每一行,每一列没有相同的数字,每一个3*3的小 阅读全文
posted @ 2018-12-27 14:15 silentteller 阅读(214) 评论(0) 推荐(0)
摘要:#include <iostream> #include <map> using namespace std; int main(){ map<int,int> m; for (int i = 0; i < 10; i++){ m[i] = i*i; } map<int,int>::iterator 阅读全文
posted @ 2018-12-27 14:05 silentteller 阅读(44411) 评论(4) 推荐(8)