公众号:爱写bug(ID:icodebugs)作者:爱写bug
给定一个非负索引 k,其中 k ≤ 33,返回杨辉三角的第 k 行。
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle.
Note that the row index starts from 0.
在杨辉三角中,每个数是它左上方和右上方的数的和。
Find the total area covered by two rectilinear rectangles in a 2D plane.
Each rectangle is defined by its bottom left corner and top right corner as shown in the figure.
Rectangle Area