需要面试准备
实现 solution(returns: list[float], target_positions: list[int], prop_cost: float, fixed_cost: float) -> list[float],对一段每期收益序列与同长度的整数目标持仓序列,计算 扣除交易成本后 的逐期 PnL。
solution(returns: list[float], target_positions: list[int], prop_cost: float, fixed_cost: float) -> list[float]