题目描述:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order....
题目描述:Given a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, r...
题目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行。...
if(x!=Father(x)) //这条代码-----其实我定义的是个数组,然而我却用错了括号【】我用了(),//D:Microsoft Visual StudioMyProjects1q.cpp(17) : error C2064: term does not evaluate to a......