摘要: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example,Given the following matrix: You s 阅读全文
posted @ 2017-06-30 22:20 王大咩的图书馆 阅读(250) 评论(0) 推荐(0) 编辑
摘要: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up:Could you do this in-place? 方法一:常规思路: 将图 阅读全文
posted @ 2017-06-30 21:39 王大咩的图书馆 阅读(345) 评论(0) 推荐(0) 编辑
摘要: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted f 阅读全文
posted @ 2017-06-30 13:14 王大咩的图书馆 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Given a number represented as an array of digits, plus one to the number. 题意:给定数以数组的形式存储,然后计算该数加1的值。 思路:一般遇到这种以数组,或字符串形式的数相加的问题,都是从右往左遍历(因为,数的低位在右边),用 阅读全文
posted @ 2017-06-30 09:45 王大咩的图书馆 阅读(188) 评论(0) 推荐(1) 编辑
摘要: 文来自对实验楼的实验文档和相应操作过程的整理。 涉及的内容为:索引、视图、导入和导出、备份和恢复。 一、索引 索引是一种与表有关的结构,相当于书的目录,可以根据目录中的页码快速找到所需的内容。 当表中有大量记录时,若要对表进行查询,没有索引的情况是全表搜索:将所有记录一一取出,和查询条件进行一一对比 阅读全文
posted @ 2017-06-30 00:37 王大咩的图书馆 阅读(242) 评论(1) 推荐(1) 编辑