-
最小不重复数问题
问题描述:给定一个数n,找出大于这个数的最小不重复数(任意相邻位数字不相同)。
程序给出了两种方法:find和find1,其中find1属于暴力法,直接从n+1开始寻找,每次加1,知道找到满足条件的不重复数为止。
第二种方法比较巧妙,将n各位数字存到一个数组a[]里,下标大小对应位数高低,比如1234,数组a[0...3]依次为1,2,3,4;从最高位开始找相邻的重复数,较低的重复位加1带进位,高位循环加进位直到无进位,低位置零;回到次高位重新寻找重复位,直到无重复位。
- 2022-05-13 23:24:34下载
- 积分:1
-
算术表达式求值的程序,用栈实现的,可以进行加、减、乘、除、乘方、求余计算,支持小数和括号 (数据结构作业)...
算术表达式求值的程序,用栈实现的,可以进行加、减、乘、除、乘方、求余计算,支持小数和括号 (数据结构作业)-arithmetic expression evaluates the procedures used stack to achieve, and can be, plus or minus, multiplication, addition, the involution, for I, support minority and brackets (data structure operations)
- 2023-04-17 03:30:03下载
- 积分:1
-
EStereo/Stereo Plus
EStereo is a C++ library that enables to perform real-time dense stereo from 2 or 3 rectified images. StereoPlus is a GUI-based application allowing a user to load images and compute their disparity image and visualize/manipulate their 3D reconstruction (requires DirectX 9.0 or higher).
- 2022-06-13 01:41:19下载
- 积分:1
-
psd 文件解析
psd 文件解析,有学习价值。解析psd 文件的内容,图层等相关信息,从解析的内容中可以清晰的看到psd内容的相关信息,充分理解psd的具体结构。
- 2022-03-24 12:33:49下载
- 积分:1
-
军团问题, 某国家在一条战线上(一条直线)上部署了n 支军队。如果两支或两支以上军队相邻,它们将形成一个军团。如果一支军队不和任何一支军队相邻,那么它也是一个独...
军团问题, 某国家在一条战线上(一条直线)上部署了n 支军队。如果两支或两支以上军队相邻,它们将形成一个军团。如果一支军队不和任何一支军队相邻,那么它也是一个独立的团。给定一组军队在战线上左右两端的位置及编号,求出所有的军团
-Corps issues, a country in a front (a straight line) on n-support forces deployed. If two or more than two neighboring armies, they will form a regiment. If an army is not adjacent to any one army, then it is also an independent regiment. Given a group of troops on the front left and right ends of the location and number, find all of the Army
- 2022-02-28 17:22:05下载
- 积分:1
-
实数序列的快速傅立叶变换,基本算法为分裂基算法,将实数序列数组的地址给函数即可...
实数序列的快速傅立叶变换,基本算法为分裂基算法,将实数序列数组的地址给函数即可-actual sequence of the fast Fourier transform, the basic algorithm for splitting algorithm-based, real-sequence addresses to the array function can be
- 2022-06-14 16:21:26下载
- 积分:1
-
first come first serve
first come first serve
- 2022-01-26 06:50:02下载
- 积分:1
-
一种基于PCNN的医学图像边缘提取方法
边缘提取是图像处理的基础工作,如何精确有效地提取边缘是图像处理领域相关学者讨论的热点问题,由此产生的各种边缘检测方法层出不穷并且得到了很好的应用,但这些方法都无法达到人眼识别物体边缘的精确程度
- 2022-06-01 07:57:48下载
- 积分:1
-
求解整数的最大公约数
求解整数的最大公约数-the common denominator for Solving Integer
- 2022-03-02 07:14:48下载
- 积分:1
-
人脸特征点检测
运用机器学习算法实现人脸特征点的自动定位,可用于人脸识别,表情识别等领域。
- 2023-08-06 02:25:06下载
- 积分:1