This task may sound a little weird, because even if we have even number of oranges, after passing the first guard we will be down to odd number and we might have a little confusion when giving the half and 3 more, but you just skip this and write the answer as it should be , (((N+3)*2+3)*2+3)*2 .
OMG! I get it thanks for the explanation!! That math of mine~
ReplyDelete