目录
第1题:反转图像
第2题:上升下降字符串
第3题:合并两个排序链表
第4题:和为0的N个唯一整数
第5题:反转二叉树
第6题:高度检查器
第7题:距离值
第8题:自除数
第9题:最大数值
第10题:反转字符串
力扣(LeetCode)定期刷题,每期10道题,业务繁重的同志可以看看我分享的思路,不是最高效解决方案,只求互相提升。
第1题:反转图像试题要求如下:
回答(C语言):
/** * Return an array of arrays of size *returnSize. * The sizes of the arrays are returned as *returnColumnSizes array. * Note: Both returned array and *columnSizes array must be malloced, assume caller calls free(). */ int** flipAndInvertImage(int** A, int ASize, int* AColSize, int* returnSize, int** returnColumnSizes){ int num=0,data_buf=0; for(int i=0;i关注打赏