Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
+ 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
26 Antworten
+ 17
@Oma Please clarify what output is for midnight? 0 or 12 strikes? Thank you 😊
19th Feb 2018, 7:02 AM
LukArToDo
19th Feb 2018, 10:52 AM
LukArToDo
+ 10
@Oma Hahaha...yes, you have right 😉
19th Feb 2018, 7:53 AM
LukArToDo
+ 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❄️⚛️
+ 8
https://code.sololearn.com/cbpdatq30Uq7/?ref=app
20th Feb 2018, 10:11 AM
Käzî Mrîdùl Høssäîn
+ 7
@Oma I think you should post some assignments too in the lesson factory.
18th Feb 2018, 4:15 PM
Akash Pal
+ 7
@Lukar 12 times. Otherwise people pass ghost hour (-:
19th Feb 2018, 7:26 AM
Oma Falk
22nd Feb 2018, 5:52 PM
Baraa AB
+ 6
Nice challenge :)
18th Feb 2018, 11:29 AM
Augustinas Lukauskas
+ 6
@Vishal sounds good!
18th Feb 2018, 4:11 PM
Oma Falk
18th Feb 2018, 12:45 PM
Augustinas Lukauskas
+ 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
+ 4
oma let others think... u directly posted an ans... zero patience...
19th Feb 2018, 4:13 AM
sayan chandra
21st Feb 2018, 3:24 PM
Pedro Demingos
+ 3
@Maxim clear rule 2 , 2:15, 2:30 2:45 3:00
18th Feb 2018, 12:17 PM
Oma Falk
18th Feb 2018, 1:36 PM
+ 2
22nd Feb 2018, 3:28 AM
Anthony
+ 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
+ 1
Well, just a clumsy attempt working around numpy ranges https://code.sololearn.com/cHtAF3121LrY/?ref=app
19th Feb 2018, 1:51 PM
strawdog
Heute heiß
Html img