NETCRACKER OA
Anonymous User
412

How to attempt this? using dp

A 2D matrix was given with children as rows and toys as columns. The values at indexes are 0 or 1 as either a child can have this toy or not. I had to find a way to allocate a child a toy with a one-to-one relation. If exists then print “YES” then “NO”.

Comments (0)