Leetcode 83. 删除排序链表中的重复元素


https://leetcode.cn/problems/remove-duplicates-from-sorted-list//** * Definition for singly-linked list. * struct ListNode { * int val; * stru

Leetcode 206. 反转链表


https://leetcode.cn/problems/reverse-linked-list/C语言解答/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNod

c语言qsort方法使用


#include <stdio.h>#include <stdlib.h>int cmp(const void *a,const void *b){// return *(int*)a-*(int*)b; //正序 从小到大// return *(int*)b-*

Leetcode-704. 二分查找


Leetcode-704. 二分查找C语言题解int search(int* nums, int numsSize, int target){ int index = binarySearch(nums,0,numsSize-1,target); return index;}int bi