Code Challenges

Get better at coding with practice problems.

Coding Challenges

Select a problem, write code, run test cases, and submit your solution.

Showing 19 of 48 problems

Implement the countSquareSubmatricesOnes method that counts square submatrices that contain only 1 values. Solved

Implement the wordSearchMatrixExists method that checks whether the word exists in the matrix path. Solved

Implement the maximalSquareMatrixArea method that returns the area of the largest square containing only 1 values. Solved

Implement the rotateImageClockwise method that returns the matrix after rotating it 90 degrees clockwise. Solved

Implement the spiralOrderTraversalLength method that returns the number of elements visited in spiral order. Solved

Implement the setMatrixZeroesCount method that counts cells affected after applying matrix zeroing rules. Solved