Write a method that will take in a number of minutes, and returns a string that formats the number into ‘hours:minutes’.
Second time solving this problem:
didn’t use a while loop but it seemed to work out fine..
Note to self: don’t forget to use “+” and .to_s to join integers together into strings.
I realized the provided solution didn’t account for the ‘6:00’ and ‘2:05’ cases, so I redid the problem entirely.
[Edit]: Ok, I was wrong. The provided solution does account for those cases. However, it doesn’t account for cases where you input negative minutes. Here’s the revised version: