[challenge] Sololearn clock | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 32

[challenge] Sololearn clock

The Sololearn clock strikes - The hours at full hour --> three times at 3pm - one time at a quarter past - two times at half - 3 times at s quarter to Given two times from user eg 17:33 and 23:14 - how many times does clock strike within that time interval? input is included 14:00 15:30 : 2+1+2+3+3+1+2 if first input is higher value, the second one is next day. Have fun!

18th Feb 2018, 11:14 AM
Oma Falk
Oma Falk - avatar
26 Antworten
+ 17
@Oma Please clarify what output is for midnight? 0 or 12 strikes? Thank you ­čśŐ
19th Feb 2018, 7:02 AM
LukArToDo
LukArToDo - avatar
19th Feb 2018, 10:52 AM
LukArToDo
LukArToDo - avatar
+ 10
@Oma Hahaha...yes, you have right ­čśë
19th Feb 2018, 7:53 AM
LukArToDo
LukArToDo - avatar
+ 8
@Oma Folk you have very good range of Algorithms based Challenges. Why Don't you make them Assignment. What's your Opinion about Assignment and Answer it Here. https://www.sololearn.com/discuss/1082512/?ref=app
18th Feb 2018, 4:07 PM
Vishal PalÔŁä´ŞĆÔÜŤ´ŞĆ
Vishal PalÔŁä´ŞĆÔÜŤ´ŞĆ - avatar
+ 8
https://code.sololearn.com/cbpdatq30Uq7/?ref=app
20th Feb 2018, 10:11 AM
K├Ąz├« Mr├«d├╣l H├Şss├Ą├«n
K├Ąz├« Mr├«d├╣l H├Şss├Ą├«n - avatar
+ 7
@Oma I think you should post some assignments too in the lesson factory.
18th Feb 2018, 4:15 PM
Akash Pal
Akash Pal - avatar
+ 7
@Lukar 12 times. Otherwise people pass ghost hour (-:
19th Feb 2018, 7:26 AM
Oma Falk
Oma Falk - avatar
22nd Feb 2018, 5:52 PM
Baraa AB
Baraa AB - avatar
+ 6
Nice challenge :)
18th Feb 2018, 11:29 AM
Augustinas Lukauskas
Augustinas Lukauskas - avatar
+ 6
@Vishal sounds good!
18th Feb 2018, 4:11 PM
Oma Falk
Oma Falk - avatar
18th Feb 2018, 12:45 PM
Augustinas Lukauskas
Augustinas Lukauskas - avatar
+ 5
https://www.sololearn.com/discuss/1082512/?ref=app
19th Feb 2018, 2:57 PM
DeleteThisAccount
+ 5
me also?!
22nd Feb 2018, 7:56 PM
Baraa AB
Baraa AB - avatar
+ 4
oma let others think... u directly posted an ans... zero patience...
19th Feb 2018, 4:13 AM
sayan chandra
sayan chandra - avatar
21st Feb 2018, 3:24 PM
Pedro Demingos
Pedro Demingos - avatar
+ 3
@Maxim clear rule 2 , 2:15, 2:30 2:45 3:00
18th Feb 2018, 12:17 PM
Oma Falk
Oma Falk - avatar
18th Feb 2018, 1:36 PM
đĺđ░đ┤đŞđ╝ đíĐâĐůđżĐéđŞđŻ (Vadim Sukhotin)
đĺđ░đ┤đŞđ╝ đíĐâĐůđżĐéđŞđŻ (Vadim Sukhotin) - avatar
22nd Feb 2018, 3:28 AM
Anthony
Anthony  - avatar
+ 1
It's quite easy if you work with minutes instead of hour:minute format, great challenge! https://code.sololearn.com/c2E1P5kGGNnS/?ref=app
19th Feb 2018, 12:49 PM
Lucas Pardo
Lucas Pardo - avatar
+ 1
Well, just a clumsy attempt working around numpy ranges https://code.sololearn.com/cHtAF3121LrY/?ref=app
19th Feb 2018, 1:51 PM
strawdog
strawdog - avatar