05 2022 档案
摘要:class Solution { public: vector<int> intersection(vector<int>& nums1, vector<int>& nums2) { // vector<int> ans; // int nlen1 = nums1.size(), nlen2 = n
阅读全文
摘要:class Solution { void quickSort(vector<string>& strs, int l, int r) { if (l >= r) return; int i = l, j = r; while (i < j) { while(strs[j] + strs[l] >=
阅读全文
摘要:剑指 Offer 45. 把数组排成最小的数 输入一个非负整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个。 示例 1: 输入: [10,2] 输出: "102" 示例 2: 输入: [3,30,34,5,9] 输出: "3033459" 提示: 0 < nums.l
阅读全文