Who can talk about the core idea and specific code implementation of deep search?
2条回答 默认 最新
- w-haiS 2019-05-30 14:45关注
核心算法:递归
基本步骤:
定义函数,然后利用自身一直递归,知道最后得出结果
def Function(parameter){
//控制结束条件
//进行状态转移
//调用自身进行遍历
Function(parameter);
//结束程序
}看一下这个例题参考一下:https://blog.csdn.net/qq_43066253/article/details/89609766
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报