Hey - looks like you're writing Ruby 😁. Try taking up the post to mention the language, and add the name of the language to the fenced code block at we get done syntax highlighting.
Nice use of inject there - build the list of numbers then sum them. Can you solve this without using an array? Can you solve it with a recursive method?
Hey, David. Thanks a lot for your review and feedback 😁. I have added a recursive solution as well as the name of the language. What do you think of it now?
Hey - looks like you're writing Ruby 😁. Try taking up the post to mention the language, and add the name of the language to the fenced code block at we get done syntax highlighting.
Nice use of
inject
there - build the list of numbers then sum them. Can you solve this without using an array? Can you solve it with a recursive method?Hey, David. Thanks a lot for your review and feedback 😁. I have added a recursive solution as well as the name of the language. What do you think of it now?
Nice work on the recursive solution.
Now let's make your code look pretty!
On the opening of your block of code
Put the language in
And it'll look like this
Thank you, David!