Skip to content

Commit 03154ca

Browse files
authored
Update 1898-maximum-number-of-removable-characters.js
Updating the space complexity for the brute force approach.
1 parent 6bafb1f commit 03154ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: javascript/1898-maximum-number-of-removable-characters.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* https://leetcode.com/problems/maximum-number-of-removable-characters/
33
*
44
* Brute force
5-
* Time O(removable.length * s.length) | Space O(1)
5+
* Time O(removable.length * s.length) | Space O(n)
66
* @param {string} s
77
* @param {string} p
88
* @param {number[]} removable

0 commit comments

Comments
 (0)