# Algcom **Repository Path**: hackydh/Algcom ## Basic Information - **Project Name**: Algcom - **Description**: Algorithm and Comparing 各类算法和性能比较 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-09-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #算法和性能比较 学习各种算法和数据结构,以及编程语言之间的性能比较 ##内容 * 找出数组中唯一的重复元素[参考](findrepeatCompare) * 描述 将1~n的n个数放在包含n+1个元素的数组中, 只有唯一的一个元素重复,其它均只出现一次。 设计算法求解这一唯一重复的元素。 * 要求 每个数组元素只能访问一次,空间复杂度为O(1) ##常用命令 * 编译cpp文件 GCC编译器:`g++ -O2 -Wall main.cpp` MSVS编译器:`cl /O2 /Fetest.exe main.cpp` * 使用Python生成输入数据,`gen.py`是生成程序 `python gen.py | test.exe`