代码搜索:递归回溯
找到约 2,805 项符合「递归回溯」的源代码
代码结果 2,805
www.eeworm.com/read/243219/12954556
cpp 8queue4.cpp
// 文件:QUEEN.CPP
// 功能:使用回溯算法来求八皇后问题的所有解
#include
enum BOOLEAN {
FALSE = 0,
TRUE = 1
};
// 表示棋盘状态的枚举类型
enum STATUS {
EMPTY = 0,
HAVE = 1
};
const int max_length = 2
www.eeworm.com/read/389518/8515910
java permutation.java
//【习3.26】 用递归方法求n个数的无重复全排列。
public class Permutation
{
private int[] table;
public Permutation(int n) //构造方法
{
if (n>0)
{
ta
www.eeworm.com/read/471368/1431486
java permutation.java
//【习3.26】 用递归方法求n个数的无重复全排列。
public class Permutation
{
private int[] table;
public Permutation(int n) //构造方法
{
if (n>0)
{
ta
www.eeworm.com/read/293161/8312722
frm practice8_9.frm
VERSION 5.00
Begin VB.Form Form1
Caption = "用递归方法求斐波那契数列"
ClientHeight = 2340
ClientLeft = 60
ClientTop = 345
ClientWidth = 7515
LinkTopic
www.eeworm.com/read/411408/11246418
cpp 00036.cpp
/*
名称编号:00036
实现功能:递归反转字符串
运行结果:通过
*/
/***************************************************************************/
#include
#include
//函数实现
char reverse(char *str,int
www.eeworm.com/read/292139/8375873
java fib_d.java
public class Fib_d
{
static int fib(int n) //递归方法
{
if ((n==0) || (n==1))
return n;
else
return fib(n-2)+fib(n-1);
}
pub