Skip to content

Find Available Meeting Time#14

Open
emmapaczkowski wants to merge 25 commits intomasterfrom
different-approach
Open

Find Available Meeting Time#14
emmapaczkowski wants to merge 25 commits intomasterfrom
different-approach

Conversation

@emmapaczkowski
Copy link
Owner

I have implemented the findMeetingQuery to find the meeting times as well as writing more tests to allow for optional attendees.

@emmapaczkowski emmapaczkowski changed the title Different approach Find Available Meeting Time Aug 4, 2020
Copy link
Collaborator

@wjiamin wjiamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some style issues, but algorithm LGTM! I'll let Sailesh approve.

import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.Iterator;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be sorted


public Collection <TimeRange> query(Collection <Event> events, MeetingRequest request) {

this.events = events;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why make these member variables?

// Check if attendees from event are requested for meeting
for (String attendee: event.getAttendees()) {
// Check that attendee is a mandatoryattendee
if ((request.getAttendees().contains(attendee))) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra parenthesis (same below)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants