JavaScript is required to use Bungie.net

OffTopic

Surf a Flood of random discussion.
Edited by GameBroJeremy: 3/27/2016 1:57:13 PM
214

Create a Math Problem and Others Will Try To Solve It

Are you a master at math? Do you want to make other forum users suffer extreme brain farts? If so, then you came to the right place! Put down a math problem and see if anyone guesses it right. [b]This is your opportunity to make our brains suffer![/b] [spoiler]I am terrible at math[/spoiler]

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

View Entire Topic
  • Edited by Tringus: 3/29/2016 8:39:06 PM
    public class Easy { public int recursion (int x) { if (x == 0) return 0; else if ((x % 2) == 0) return 1 + recursion (x -1); else return 2 + recursion (x-1); } } What is returned by recursion(5)? Correct answer when someone gets it: [spoiler]8[/spoiler]

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

    8 Replies
    1 2
    You are not allowed to view this content.
    ;
    preload icon
    preload icon
    preload icon