Skip to content

Commit 32fc53c

Browse files
authored
Update 1625-lexicographically-smallest-string-after-applying-operations.js
1 parent 52ecad7 commit 32fc53c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

1625-lexicographically-smallest-string-after-applying-operations.js

-5
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ const findLexSmallestString = function(s, a, b) {
1515
const tmp = q.shift()
1616
const t1 = podd(tmp, a)
1717
const t2 = rotate(tmp, b)
18-
if(!set.has(tmp)) {
19-
set.add(tmp)
20-
q.push(tmp)
21-
}
2218
if(!set.has(t1)) {
2319
set.add(t1)
2420
q.push(t1)
@@ -30,7 +26,6 @@ const findLexSmallestString = function(s, a, b) {
3026
if(t1 < res) res = t1
3127
if(t2 < res) res = t2
3228
}
33-
3429
}
3530
return res
3631
};

0 commit comments

Comments
 (0)