Algorithm

Algorithm



  • Home
  • Algorithm
    • LeetCode
    • LintCode
    • HDUOJ
  • Online Judge
  • Archive


Matrix

Matrix

[LeetCode 59] Spiral Matrix II [Java]

 2018-01-31

1. Description Given an integer n, generate a square matrix filled with elements from 1 to n^2 in spiral order. 2. Example Given n = 3, You sh...


 NOTHING
 617 views

Matrix
leetcode

[LeetCode 661] Image Smoother [Java] [Runtime : 27MS]

 2017-09-26

1. Description Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each ce...


 NOTHING
 832 views

Matrix
leetcode

[LeetCode 566] Reshape the Matrix [Java] [Runtime : 7MS]

 2017-09-20

1. Description In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep ...


 NOTHING
 1,163 views

Matrix
leetcode

[LeetCode 598] Range Addition II [Java] [Runtime : 6MS]

 2017-09-17

1. Description Given an m * n matrix M initialized with all 0's and several update operations. Operations are represented by a 2D array, and each o...


 NOTHING
 1,090 views

Matrix

[LeetCode 48] Rotate Image [Java] [Runtime: 2MS]

 2017-08-20

1. Description You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). 2. Runtime Distribution 3. Subm...


 NOTHING
 798 views

Matrix
leetcode

[LeetCode 240] Search a 2D Matrix II [Java] [Runtime: 13MS]

 2017-08-15

1. Description Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in eac...


 NOTHING
 690 views

Matrix

[LeetCode 54] Spiral Matrix [Java] [Runtime: 2MS]

 2017-08-13

1. Description Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. 2. Runtime Distribution 3....


 NOTHING
 756 views

Matrix

[LeetCode 73] Set Matrix Zeroes [Java] [Runtime: 1MS]

 2017-08-13

1. Description Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. 2. Runtime Distribution 3. Submission...


 NOTHING
 690 views

Copyright © 2017- 2023. DunSO All rights reserved.

  • Home
  • Algorithm
    • LeetCode
    • LintCode
    • HDUOJ
  • Online Judge
  • Archive

What do you want to search...

