Skip to content
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

Day 265 #541

Closed
vaskoz opened this issue May 14, 2019 · 0 comments · Fixed by #592
Closed

Day 265 #541

vaskoz opened this issue May 14, 2019 · 0 comments · Fixed by #592
Assignees

Comments

@vaskoz
Copy link
Owner

vaskoz commented May 14, 2019

Good morning! Here's your coding interview problem for today.

This problem was asked by Atlassian.

MegaCorp wants to give bonuses to its employees based on how many lines of codes they have written. They would like to give the smallest positive amount to each worker consistent with the constraint that if a developer has written more lines of code than their neighbor, they should receive more money.

Given an array representing a line of seats of employees at MegaCorp, determine how much each one should get paid.

For example, given [10, 40, 200, 1000, 60, 30], you should return [1, 2, 3, 4, 2, 1].

@vaskoz vaskoz self-assigned this May 14, 2019
@vaskoz vaskoz mentioned this issue Jun 7, 2019
@vaskoz vaskoz mentioned this issue Jan 11, 2020
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 a pull request may close this issue.

1 participant