Update README.md with more hints and typo corrections
This commit is contained in:
@@ -4,10 +4,10 @@ of which contains zero or more [LocalDateRange](https://www.threeten.org/threete
|
|||||||
objects. The function must return a set of LocalDateRange objects that represent the [interval difference](http://mathinschool.com/page/8.html) of the
|
objects. The function must return a set of LocalDateRange objects that represent the [interval difference](http://mathinschool.com/page/8.html) of the
|
||||||
first set and all additional sets of the input. This English sentence represents an example of the operation:
|
first set and all additional sets of the input. This English sentence represents an example of the operation:
|
||||||
|
|
||||||
"Remove the second week in January 2024 and New Years Day from the month of January 2024."
|
"Remove the second week in January and New Years Day from the month of January 2024."
|
||||||
|
|
||||||
### Context
|
### Context
|
||||||
At Sun Tribe Trading we gather the energy production of solar generators from various sources (typically API from of the manufacturers
|
At Sun Tribe Trading we gather the energy production of solar generators from various sources (typically APIs from the manufacturers
|
||||||
of solar energy equipment) and submit the data to regulatory authorities. It's important that we accurately determine the energy data we need
|
of solar energy equipment) and submit the data to regulatory authorities. It's important that we accurately determine the energy data we need
|
||||||
to gather based on the data we already have on hand and the current reporting period. Date interval operations are central to this
|
to gather based on the data we already have on hand and the current reporting period. Date interval operations are central to this
|
||||||
computation.
|
computation.
|
||||||
@@ -38,6 +38,8 @@ Our solution evolved from the observation that a LocalDateRange object can be re
|
|||||||
input into a set difference operation, but the result must be "compressed" back into the minimal set of LocalDateRange
|
input into a set difference operation, but the result must be "compressed" back into the minimal set of LocalDateRange
|
||||||
objects.
|
objects.
|
||||||
|
|
||||||
|
The `LocalDateRange` class has some useful methods (class and instance).
|
||||||
|
|
||||||
Before coding, you should be comfortable with the concept of a [time interval](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals), and
|
Before coding, you should be comfortable with the concept of a [time interval](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals), and
|
||||||
more specifically a (local) date interval as implemented by
|
more specifically a (local) date interval as implemented by
|
||||||
the [backing Java library we use](https://www.threeten.org/threeten-extra/apidocs/org.threeten.extra/org/threeten/extra/LocalDateRange.html).
|
the [backing Java library we use](https://www.threeten.org/threeten-extra/apidocs/org.threeten.extra/org/threeten/extra/LocalDateRange.html).
|
||||||
@@ -47,5 +49,7 @@ This git repository is the entire input you will need for the Sun Tribe code cha
|
|||||||
of this repository (including our initial commits and the commit(s) of your solution). You may submit either:
|
of this repository (including our initial commits and the commit(s) of your solution). You may submit either:
|
||||||
|
|
||||||
* a link to a public http(s) repository that can be cloned by `git clone <url>`.
|
* a link to a public http(s) repository that can be cloned by `git clone <url>`.
|
||||||
|
|
||||||
-or-
|
-or-
|
||||||
|
|
||||||
* a repository compressed into a standard zip file that can be opened with `unzip <file>`.
|
* a repository compressed into a standard zip file that can be opened with `unzip <file>`.
|
||||||
|
|||||||
Reference in New Issue
Block a user