Ransom Note
Easy
Frequency Counting
Print YES if the note can be built from the letters of the magazine (each magazine letter used at most once), otherwise NO.
Constraints
1 <= lengths <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.