摘要:
2017/3/30 21:49:57 Determine whether an integer is a palindrome. Do this without extra space. 版本1:要求不能用额外空间说明不能建立数组存每个数字,只能依靠运算符。 1、需要额外考虑负数情况; 2、从两边开 阅读全文
摘要:
2017/3/30 19:26:58 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets 阅读全文
摘要:
2017/3/30 14:28:32 Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example,Given n = 3, You should 阅读全文
摘要:
2017/3/26 16:09:31 问题:求解稀疏矩阵乘法 版本1:朴素算法 θ(n3) 采用常规矩阵乘法公式 public static int[][] SparseMatrixMultiplication( int[][] A , int[][] B ){ int M = A.length; 阅读全文
摘要:
2017/3/30 13:01:59 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 foll 阅读全文