题目Given an index k, return the kth row of the Pascal's triangle.For example, given k = 3,Return [1,3,3,1].这道题是118题的延续,要求给定数字k,返回杨辉三角的第k行,这里把最开始的[1]这一行看作了第0行。...
Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After remo...
Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X&...