You are viewing a single comment's thread. Return to all comments →
you dont need 6 steps in reduction method.
in reduction method reduce all 5 to 2
so it will take 5 steps
and in increment method as @zabed_akbar said only 5 steps required
2 (5) 5 5 5 5
5 5 (8) 8 8 8
8 8 8 (11) 11 11
11 11 11 11 (14) 14
14 14 14 14 14 (17)
17 17 17 17 17 17
Equal
You are viewing a single comment's thread. Return to all comments →
you dont need 6 steps in reduction method.
in reduction method reduce all 5 to 2
so it will take 5 steps
and in increment method as @zabed_akbar said only 5 steps required
2 (5) 5 5 5 5
5 5 (8) 8 8 8
8 8 8 (11) 11 11
11 11 11 11 (14) 14
14 14 14 14 14 (17)
17 17 17 17 17 17