In the premise of disabling cycle calculated all the numbers between 144-237 cumulative and
God to the point of pursuing big ideas, beginner java novice .
------ Solution ---------------------------------------- ----
calculated by summing the number of columns
(237 +144) * (237-144 +1) / 2
------ Solution --------------------- -----------------------
LZ should go to high school math ah
------ Solution ------ --------------------------------------
recursive ~ ~
------ Solution - -------------------------------------------
which do besides recursion ?
. . . Will lead to trouble
------ Solution -------------------------------------- ------
you say , then you can use multiplication and division shift operation . .
this subtraction words. Really can be changed and then shift to solve multiplication . .
------ Solution ---------------------------------------- ----
a mathematical formula Well ~
------ For reference only ------------------------- --------------
- which I do not know what , which means that there may be more related with the operator simple arithmetic ah ?
------ For reference only ---------------------------------------
which in addition to recursive it ?
------ For reference only ---------------------------------- -----
only know recursion , think of other ways
没有评论:
发表评论