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

 

dateTime_secondsLeft


Given two sets of times as hour and minute integers, return how many seconds there are in between the two times!


dateTime_secondsLeft(0, 0, 1, 0) → 3600
dateTime_secondsLeft(12, 0, 12, 1) → 60
dateTime_secondsLeft(12, 0, 12, 30) → 1800

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

public int dateTime_secondsLeft(int h1, int m1, int h2, int m2) { }

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