Given a set of items, each with a weight and a value, determine the number of each item to include in a collection so that the total weight is less than or equal to a given limit and return the largest possible value which can be collected.
In a N x N grid composed of 1 x 1 squares, each 1 x 1 square consists of a /
, \
, or blank space. These characters divide the square into contiguous regions.
URL shortening is used to create shorter aliases for long URLs. We call these shortened
aliases “short links”. Users are redirected to the original URLs when they hit those short
links. Short links save a lot of space when displayed, printed, messaged, tweeted. Additionally,
users are less likely to mistype shorter URLs.