Problem Statement

You are given:

g[i] = greed factor of the ith child

s[j] = size of the jth cookie

A child is satisfied if: