Skip to content

Solution and Test for issue #58#75

Merged
yjlim5 merged 3 commits into
llipio:masterfrom
yjlim5:yj2
Jun 15, 2017
Merged

Solution and Test for issue #58#75
yjlim5 merged 3 commits into
llipio:masterfrom
yjlim5:yj2

Conversation

@yjlim5
Copy link
Copy Markdown
Collaborator

@yjlim5 yjlim5 commented Jun 5, 2017

Return a guest list for Max fun

Comment thread test/58.js Outdated
// solution = require('../yourSolution').solution;

describe('return smallest number of coins required to return the change', () => {
class Employee {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

import this from solution. Doesn't make sense for Employee to be part of tests.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

required

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done.

Comment thread solutions/58.js Outdated
});
});

if (funValWithoutEmp > funValWithEmp) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

return funValWithoutEmp > funValWithEmp ? funValWithoutEmp : funValWithEmp;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done.

Comment thread test/58.js Outdated
// solution = require('../yourSolution').solution;

describe('return smallest number of coins required to return the change', () => {
class Employee {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

required

Comment thread solutions/58.js Outdated
* @param {Employee} emp - an Employee with fun value and a list of his staff
* @returns {Employee []]} list - Array of employees that creates the maximum fun
*/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

almost there! remove empty line

@yjlim5 yjlim5 merged commit 8c2970f into llipio:master Jun 15, 2017
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.

2 participants