Skip to content

Commit 4a76782

Browse files
committed
small edits and refining project structure
1 parent a51d7a7 commit 4a76782

File tree

6 files changed

+2
-1
lines changed

6 files changed

+2
-1
lines changed

ReadMe.md

100644100755
File mode changed.

package-lock.json

100644100755
File mode changed.

package.json

100644100755
File mode changed.

solutions/1.2-if-two-strings-are-permutations.js

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ D> With the for loop, for each character in str1, I am setting its "UTF-16 code
1919
2020
E> Compare the occurrence of each character, using the char value as index into an array of counts.
2121
22-
Time Complexity: O(n) . */
22+
Time Complexity: O(n) . Space Complexity: O(1) given - 2**16 ints
23+
*/
2324

2425
function isPermutation(str1, str2) {
2526
if (str1.length !== str2.length) {

test/1.1.spec.js

100644100755
File mode changed.

test/1.2.spec.js

100644100755
File mode changed.

0 commit comments

Comments
 (0)