mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
Tweaked unique chars challenge algorithm discussion.
This commit is contained in:
parent
ea02d83d09
commit
f824de0807
|
@ -74,7 +74,7 @@
|
|||
" \n",
|
||||
"Complexity:\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",
|
||||
"Complexity:\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",
|
||||
"Algorithm Complexity:\n",
|
||||
"* Time: O(n^2)\n",
|
||||
"* Space: In-place"
|
||||
"* Space: O(1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user