FAL 第26期量化風(fēng)控全線條訓(xùn)練營Pro
二叉樹分治法模板
public class DivideAndConquer {
? ?public Result divideAndConquer(TreeNode root) {
? ? ? ?if (root == null) {
? ? ? ? ? ?// doSomething
? ? ? ? ? ?return null;
? ? ? ?}
? ? ? ?Result leftResult = divideAndConquer(root.left);
? ? ? ?Result rightResult = divideAndConquer(root.right);
? ? ? ?return conbine(leftResult, rightResult);
? ?}}
標(biāo)簽:
FAL 第26期量化風(fēng)控全線條訓(xùn)練營Pro的評論 (共 條)
