-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStringOps.java
More file actions
30 lines (28 loc) · 802 Bytes
/
StringOps.java
File metadata and controls
30 lines (28 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package strings;
/**
* Day 5 — Valid Anagram
*
* Given two strings s and t, return true if t is an anagram of s, and false otherwise.
* An anagram uses exactly the same characters with the same frequencies.
*
* Examples:
* isAnagram("anagram", "nagaram") → true
* isAnagram("rat", "car") → false
*
* Constraints:
* - 1 <= s.length, t.length <= 5 * 10^4
* - s and t consist of lowercase English letters
*/
public class StringOps {
/**
* Determines if t is an anagram of s.
*
* @param s first string
* @param t second string
* @return true if t is an anagram of s
*/
public boolean isAnagram(String s, String t) {
// TODO: Implement this method
throw new UnsupportedOperationException("Not implemented yet");
}
}