Tweaked unique chars challenge algorithm discussion.

This commit is contained in:
Donne Martin
2015-07-05 09:24:33 -04:00
parent ea02d83d09
commit f824de0807

View File

@@ -74,7 +74,7 @@
" \n", " \n",
"Complexity:\n", "Complexity:\n",
"* Time: O(n)\n", "* Time: O(n)\n",
"* Space: Additional O(m), where m is the number of unique characters in the set" "* Space: Additional O(n)"
] ]
}, },
{ {
@@ -117,7 +117,7 @@
"\n", "\n",
"Complexity:\n", "Complexity:\n",
"* Time: O(n)\n", "* Time: O(n)\n",
"* Space: Additional O(m), where m is the number of unique characters in the hash map" "* Space: Additional O(n)"
] ]
}, },
{ {
@@ -161,7 +161,7 @@
"\n", "\n",
"Algorithm Complexity:\n", "Algorithm Complexity:\n",
"* Time: O(n^2)\n", "* Time: O(n^2)\n",
"* Space: In-place" "* Space: O(1)"
] ]
}, },
{ {