Skip to content
/ leetcode Public
  • Sponsor doocs/leetcode

  • Notifications You must be signed in to change notification settings
  • Fork 9.1k
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 669c7a4

Browse files
committedMay 10, 2024
fix: java code
1 parent 190845e commit 669c7a4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎solution/2300-2399/2391.Minimum Amount of Time to Collect Garbage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class Solution:
9797
```java
9898
class Solution {
9999
public int garbageCollection(String[] garbage, int[] travel) {
100-
Map<Character, Integer> last = new HashMap<>(3);
100+
Map<Character, Integer> last = new HashMap<>(3);
101101
int ans = 0;
102102
for (int i = 0; i < garbage.length; ++i) {
103103
String s = garbage[i];

‎solution/2300-2399/2391.Minimum Amount of Time to Collect Garbage/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class Solution:
9595
```java
9696
class Solution {
9797
public int garbageCollection(String[] garbage, int[] travel) {
98-
Map<Character, Integer> last = new HashMap<>(3);
98+
Map<Character, Integer> last = new HashMap<>(3);
9999
int ans = 0;
100100
for (int i = 0; i < garbage.length; ++i) {
101101
String s = garbage[i];

‎solution/2300-2399/2391.Minimum Amount of Time to Collect Garbage/Solution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Solution {
22
public int garbageCollection(String[] garbage, int[] travel) {
3-
Map<Character, Integer> last = new HashMap<>(3);
3+
Map<Character, Integer> last = new HashMap<>(3);
44
int ans = 0;
55
for (int i = 0; i < garbage.length; ++i) {
66
String s = garbage[i];

0 commit comments

Comments
 (0)
Please sign in to comment.