云栖社区Java、Redis、MongoDB运营小编,有意合作请联系钉钉:15810436147
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix in diagonal order as shown in the below image.