From 63bec7f16b370dd22ecf74584f11199dc3385f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20Chac=C3=B3n=20Guti=C3=A9rrez?= <138903866+joseantoniochacon@users.noreply.github.com> Date: Sat, 1 Jun 2024 13:39:23 -0600 Subject: [PATCH] Create README - LeetHub --- 0383-ransom-note/README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 0383-ransom-note/README.md diff --git a/0383-ransom-note/README.md b/0383-ransom-note/README.md new file mode 100644 index 0000000..c4acf7a --- /dev/null +++ b/0383-ransom-note/README.md @@ -0,0 +1,23 @@ +
Given two strings ransomNote
and magazine
, return true
if ransomNote
can be constructed by using the letters from magazine
and false
otherwise.
Each letter in magazine
can only be used once in ransomNote
.
+
Example 1:
+Input: ransomNote = "a", magazine = "b" +Output: false +
Example 2:
+Input: ransomNote = "aa", magazine = "ab" +Output: false +
Example 3:
+Input: ransomNote = "aa", magazine = "aab" +Output: true ++
+
Constraints:
+ +1 <= ransomNote.length, magazine.length <= 105
ransomNote
and magazine
consist of lowercase English letters.