issues
search
vivianknee
/
FastPages
Apache License 2.0
1
stars
1
forks
source link
Peer Review CSA FRQ - Rachit
#50
Closed
vivianknee
closed
1 year ago
vivianknee
commented
1 year ago
Question
Critera
Grade
1a
- [x] Loops over necessary minutes in an hour
- [x] Calls isMinuteFree with period and another int parameter
- [x] Keeps track of contiguous free minutes in a block
- [x] Checks whether a valid block of duration minutes has been found
- [x] Calculates and returns starting minute and -1 appropriately based on identified block
5/5
1b
- [x] Loops over periods from startPeriod through endPeriod
- [x] Calls findFreeBlock and reserveBlock with correct number of int parameters, representing a period and minute as appropriate, and duration
- [x] Guards call to method to reserve a block by determining that starting minute is not -1
- [x] Books correct appointment and returns appropriate boolean
5/5
Total: 10/10 Converted Score: 0.98/1
Things to Improve
improve organization. add comments so the code is more understandable throughout. easier to debug and find errors.
Total: 10/10 Converted Score: 0.98/1
Things to Improve