From 5cadb45a195ecff33fef9b09e9df67fbf6c16b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88l?= <13085322+choop12358@user.noreply.gitee.com> Date: Mon, 30 Oct 2023 04:50:31 +0000 Subject: [PATCH] . --- 2009070128/chap2/lc_1.cpp | 31 +++++++++++++++++++++++++++++++ 2009070128/chap2/lc_2.cpp | 1 + 2 files changed, 32 insertions(+) create mode 100644 2009070128/chap2/lc_1.cpp create mode 100644 2009070128/chap2/lc_2.cpp diff --git a/2009070128/chap2/lc_1.cpp b/2009070128/chap2/lc_1.cpp new file mode 100644 index 00000000..7ae7d5c4 --- /dev/null +++ b/2009070128/chap2/lc_1.cpp @@ -0,0 +1,31 @@ +//5.LeetCode88 +void merge(int* nums1, int nums1Size, int m, int* nums2, int nums2Size, int n){ + for(int i=m;i nums1[j]) + { + temp=nums1[i]; + nums1[i]=nums1[j]; + nums1[j]=temp; + } + } + } + printf("["); + for(int i=0;i