-
Couldn't load subscription status.
- Fork 24
Solution and Test for issue #58 #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
test/58.js
Outdated
| // solution = require('../yourSolution').solution; | ||
|
|
||
| describe('return smallest number of coins required to return the change', () => { | ||
| class Employee { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
solutions/58.js
Outdated
| }); | ||
| }); | ||
|
|
||
| if (funValWithoutEmp > funValWithEmp) { |
There was a problem hiding this comment.
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;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
test/58.js
Outdated
| // solution = require('../yourSolution').solution; | ||
|
|
||
| describe('return smallest number of coins required to return the change', () => { | ||
| class Employee { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required
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 | ||
| */ | ||
|
|
There was a problem hiding this comment.
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
Return a guest list for Max fun