05 2022 档案

摘要:class Solution { public: vector<int> intersection(vector<int>& nums1, vector<int>& nums2) { // vector<int> ans; // int nlen1 = nums1.size(), nlen2 = n 阅读全文
posted @ 2022-05-23 14:32 douzujun 阅读(53) 评论(0) 推荐(0) 编辑
摘要: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] >= 阅读全文
posted @ 2022-05-08 22:52 douzujun 阅读(192) 评论(0) 推荐(0) 编辑
摘要:剑指 Offer 45. 把数组排成最小的数 输入一个非负整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个。 示例 1: 输入: [10,2] 输出: "102" 示例 2: 输入: [3,30,34,5,9] 输出: "3033459" 提示: 0 < nums.l 阅读全文
posted @ 2022-05-07 18:12 douzujun 阅读(241) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示