I was asked the below question, during my phone screen today. Can anyone help me on this.
Write a method for ColumnLayoutManager that takes input arguments:
list of views with width and height
size of parent view (width and height)
returns: list of positions of the child views in the parent view.
Additional details :
Children are placed in order of the input list.
When a view cannot be placed in the parent, throw an error.