Is notice used to mean the same thing in the next two sentences (see options)?

You didn't give me enough notice.

A notice of sale.

Options are: i. different meanings. ii. the same meaning.
ii.