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 longestIncreasingPathMatrix method that returns the longest strictly increasing path length in a matrix. Solved

Implement the surroundedRegionsSafeCount method that counts cells not captured in a surrounded-regions board. Solved

Implement the nearestZeroDistanceSum method that returns the sum of distances from every cell to its nearest zero. Solved

Implement the matrixBlockSumCenter method that returns the block sum around the center using distance k. Solved