id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

tmhscs@gmail.com datetime > dateTime_minutesUntilMidnight
prev  |  next  |  chance

Given integers for a current time in hours and minutes in 24-hour format, return how many minutes there are until midnight. For example, the input of hour 0 and minute 0 should return 1440 because there are 1440 minutes in one day.


dateTime_minutesUntilMidnight(23, 59) → 1
dateTime_minutesUntilMidnight(23, 0) → 60
dateTime_minutesUntilMidnight(22, 0) → 120

...Save, Compile, Run (ctrl-enter)

public int dateTime_minutesUntilMidnight(int h, int m) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy