Skip to content

Commit

Permalink
Add assumption to str diff challenge to match the suggested solution (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarnajjar authored and donnemartin committed Apr 12, 2017
1 parent 2c6982f commit fcd4e52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions arrays_strings/str_diff/str_diff_challenge.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"source": [
"## Constraints\n",
"\n",
"* Assume two strings str1, str2, where str2 contains the same set of characters in str1 with one additional character.\n",
"* Can we assume the strings are ASCII?\n",
" * Yes\n",
"* Is case important?\n",
Expand Down
2 changes: 1 addition & 1 deletion arrays_strings/str_diff/str_diff_solution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"\n",
"Complexity:\n",
"* Time: O(m+n), where m and n are the lengths of s, t\n",
"* Space: O(1), for the dict, where h is the unique chars in s"
"* Space: O(1)"
]
},
{
Expand Down

0 comments on commit fcd4e52

Please sign in to comment.