index
title: 求 date: 2019-08-21T11:00:41+08:00 draft: false categories: offer
题目
求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。
解题思路
利用递归代替循环
Last updated
Was this helpful?