Breadcrumbs leetcode /Sort-Algorithm / Bubble-Sort.md Latest commit Chasel add tiktok problems 1e34362· Apr 13, 2021 HistoryHistory File metadata and controls Preview Code Blame 24 lines (20 loc) · 414 Bytes
[LeetCode]148. Sort List 2019-12-11 21:14 −```c++ /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; ... HZQTS 0 209 zzq's sort [思维题] ...
bubbleSort.kt quicksort.kt ternary_search.kt LeetCode Linear Search in Matrix Linked List MathematicsDS Matrix PrefixSum ProjectEuler Recursion STL Searching Segment Tree Sorting Square Root Decomposer Stack Complete Operation Stack String Tree Tries Union Find array class class_JAVA cses express-dry ...
2019-11-24 21:44 − 1、sort(a,a+7) a表示要排序的首地址,数组名代表的就是一个数组的首地址,7是要排序的元素个数 1 int a[] = { 8,2,9,1,0,5,6 }; 2 sort(a, a + 7); 3 for (int i = 0; i < 7; i++) { 4 ... lucky99 0 4424 [LeetCode]148. Sort List 201...
75. Sort Colors 摘要: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red,阅读全文 posted @ 2017-05-22 22:08 bubbleStar阅读(147)评论(0)推荐(0) ...