Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9b49335

Browse files
updated PR doocs#212
1 parent d5831d5 commit 9b49335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎solution/0760.Find Anagram Mappings/Solution.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class Solution {
44
public int[] anagramMappings(int[] A, int[] B) {
5-
HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();
5+
Map<Integer, Integer> map = new HashMap<>();
66
for (int i = 0; i < B.length; i++) {
77
map.put(B[i], i);
88
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /