Skip to content

Commit 18467a0

Browse files
authored
Update 0187-repeated-dna-sequences.js
Updated Time complexity.
1 parent 97d9ab2 commit 18467a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: javascript/0187-repeated-dna-sequences.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* https://leetcode.com/problems/repeated-dna-sequences/
33
* Hashing
4-
* Time O(n) | Space O(n)
4+
* s = the number of letters in the sequance. In our case it's 10. so the time complexity would be 10*n which boils down to n.
5+
* Time O(s*n) | Space O(n)
56
* @param {string} s
67
* @return {string[]}
78
*/

0 commit comments

Comments
 (0)