Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1426dbb

Browse files
Update 2391-minimum-amount-of-time-to-collect-garbage.java
1 parent ebd1bbb commit 1426dbb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

java/2391-minimum-amount-of-time-to-collect-garbage.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*----------------------------------
2+
Time Complexity: O(n)
3+
Space Complexity: O(1)
4+
-----------------------------------*/
5+
16
class Solution {
27
public int garbageCollection(String[] garbage, int[] travel) {
38
int[] idx = new int[3];

0 commit comments

Comments
 (0)