Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/17bit0216/programming-assignment
You are given two strings each representing hour of a given day in the format yyyymmdd hh. For example, 20170317 03 represents hour 03 of 17th March 2017. Write a program in C or C++ to list all the hours in between the given hours (both inclusive) in increasing order, one entry per line. If the output has all 24 hours of a single day then it should compress it into the form yyyymmdd. Here are some sample inputs and their corresponding outputs: Example 1 Input: 20170317 22, 20170318 02 Output: 20170317 22 20170317 23 20170318 00 20170318 01 20170318 02 Example 2 Input: 20170317 22, 20170319 02 Output: 20170317 22 20170317 23 20170318 20170319 00 20170319 01 20170319 02 Hint: Consider all corner cases.
https://github.com/17bit0216/programming-assignment
Last synced: 2 days ago
JSON representation
You are given two strings each representing hour of a given day in the format yyyymmdd hh. For example, 20170317 03 represents hour 03 of 17th March 2017. Write a program in C or C++ to list all the hours in between the given hours (both inclusive) in increasing order, one entry per line. If the output has all 24 hours of a single day then it should compress it into the form yyyymmdd. Here are some sample inputs and their corresponding outputs: Example 1 Input: 20170317 22, 20170318 02 Output: 20170317 22 20170317 23 20170318 00 20170318 01 20170318 02 Example 2 Input: 20170317 22, 20170319 02 Output: 20170317 22 20170317 23 20170318 20170319 00 20170319 01 20170319 02 Hint: Consider all corner cases.
- Host: GitHub
- URL: https://github.com/17bit0216/programming-assignment
- Owner: 17BIT0216
- Created: 2021-03-26T11:20:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-26T11:21:28.000Z (over 3 years ago)
- Last Synced: 2024-05-20T21:35:39.718Z (6 months ago)
- Language: Java
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files: