May 2000
Intermediate to advanced
594 pages
11h 32m
English
Q: | |
19-17. | It’s a bit more complex than it sounds at first. You need to use NEXT_DAY to obtain the nearest earlier date and nearest later date. Then, perform date arithmetic to see how far away each is from the specified date. Finally, compare the “distances” and return the appropriate date. Here is one implementation:
|
Q: | |
19-18. | You can take one of two approaches:
Here is a solution following the brute-force method:
|