mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-03 16:08:02 +00:00
Tweaked rotation challenge algorithm discussion.
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
"source": [
|
||||
"## Algorithm\n",
|
||||
"\n",
|
||||
"Using the following test case:\n",
|
||||
"Examine the following test case:\n",
|
||||
"* s1 = 'barbazfoo'\n",
|
||||
"* s2 = 'foobarbaz'\n",
|
||||
"\n",
|
||||
@@ -74,7 +74,7 @@
|
||||
"\n",
|
||||
"Complexity:\n",
|
||||
"* Time: O(n)\n",
|
||||
"* Space: O(2n) of additional space for s3, which reduces to O(n)"
|
||||
"* Space: O(n)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user