-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f6e017
commit 335e271
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* @Company Pinterest | ||
* | ||
* Given a number of columns and an array of pin objects, return an array containing the optimal height of each column. | ||
* A pin object is defined as: | ||
* | ||
* class Pin { | ||
* int height; | ||
* } | ||
* | ||
* The optimal heights for the column will minimize the height of the largest column. | ||
*/ | ||
public int[] columnLayout(int k, Pin[] pins) { } | ||
|
||
|
||
/** | ||
* Part two will expand on the pin object to be: | ||
* | ||
* class Pin { | ||
* int height; | ||
* int width; | ||
* } | ||
* | ||
* You are also given the width of the column, so that any pin that does not equal the column's width | ||
* must be resized proportionally to fit the column. | ||
*/ | ||
public int[] columnLayout(int k, int width, Pin[] pins) { } |