- 博客(4)
- 收藏
- 关注
原创 连接两个已经排好序的字符串
两个已经排好序的数组,写入第三个数组,写入第三个数组时要排好序,而且不允许用排序 复杂度 : O(n)#include "stdafx.h" #include <stdio.h> #include <stdlib.h> void merge(int a[10], int b[10], int c[20]){ int i = 0, j = 0, k = 0; while (i < 1
2017-06-09 01:07:08 607
原创 Find the first minimum number and the second one.
在一个数组中找出最小的两个数,复杂度为O(n);#include "stdafx.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h>int a[10000000]; int main() { srand(time(NULL)); int i;
2017-06-09 00:15:22 274
原创 Two big numbers to multiply
Description:Input two numbers (A and B) which are overflow, then output answer (A * B). My code is as follows:// bigNumberToMultiply.cpp #include <stdio.h> #include <stdlib.h> #include <string.h> #inc
2017-05-29 00:31:43 306
原创 To record command of git
mkdir: to make a new directory cd: change current catalogue pwd: show current catalogue git init: Initialized empty Git repository in your current catalogue
2017-05-28 20:18:13 209
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人