摘要: 力扣(LeetCode)官网 - 全球极客挚爱的技术成长平台 /** * Note: The returned array must be malloced, assume caller calls free(). */ int cmp(const void * a, const void * b) 阅读全文
posted @ 2023-09-26 17:35 朵朵奇fa 阅读(7) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main () { char* s = "hello"; // 字符串名字就是首地址 printf("%x\n",s); // s是char指针,size = 4 or 8 printf("sizeof s is %d\n", sizeof(s)); / 阅读全文
posted @ 2023-09-26 17:01 朵朵奇fa 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 167. 两数之和 II - 输入有序数组 - 力扣(LeetCode) /** * Note: The returned array must be malloced, assume caller calls free(). */ int* twoSum(int* numbers, int num 阅读全文
posted @ 2023-09-26 14:50 朵朵奇fa 阅读(6) 评论(0) 推荐(0) 编辑