算法代码回溯法动态规划分治法贪心 Algorithm code (backtracking method, dynamic programming, divide and conquer, greedy)