yacs.n
yacs.n copied to clipboard
Update YacsService.js
Course filter function
This function takes the course list (should be the complete course list) and a filter array as an input. The filter array should be of size 5, where filter[i] is the forbidden times on day i. For example, CSCI 2300 (Fall) section 02 has 3 times, 2:00pm-3:50pm on Tuesday and Friday, and 12:00pm-1:50pm on Wednesday. So the filter array, if CSCI 2300 was selected, would be:
[ [], ["14:00:00", "15:50:00], ["12:00:00", "13:00:00], [], ["14:00:00", "15:50:00] ]