Skip to content

Commit 18b2f89

Browse files
committed
1
1 parent c5c5319 commit 18b2f89

File tree

2 files changed

+28
-24
lines changed

2 files changed

+28
-24
lines changed

.ipynb_checkpoints/Week4_Ligang_Zhang-checkpoint.ipynb

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -213,18 +213,20 @@
213213
},
214214
{
215215
"cell_type": "code",
216-
"execution_count": 36,
216+
"execution_count": 44,
217217
"metadata": {
218218
"scrolled": true
219219
},
220220
"outputs": [
221221
{
222-
"ename": "IndentationError",
223-
"evalue": "unindent does not match any outer indentation level (<tokenize>, line 17)",
224-
"output_type": "error",
225-
"traceback": [
226-
"\u001b[1;36m File \u001b[1;32m\"<tokenize>\"\u001b[1;36m, line \u001b[1;32m17\u001b[0m\n\u001b[1;33m pos[string[i]] = i\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mIndentationError\u001b[0m\u001b[1;31m:\u001b[0m unindent does not match any outer indentation level\n"
227-
]
222+
"data": {
223+
"text/plain": [
224+
"'asdhhh'"
225+
]
226+
},
227+
"execution_count": 44,
228+
"metadata": {},
229+
"output_type": "execute_result"
228230
}
229231
],
230232
"source": [
@@ -239,17 +241,17 @@
239241
" if string[i] not in pos: \n",
240242
" pos[string[i]] = i \n",
241243
" else: \n",
242-
" currlen = i - st \n",
243-
" if maxlen < currlen: \n",
244-
" maxlen = currlen \n",
245-
" start = st \n",
244+
" currlen = i - st \n",
245+
" if maxlen < currlen: \n",
246+
" maxlen = currlen \n",
247+
" start = st \n",
246248
" st = pos[string[i]] + 1\n",
247249
" pos[string[i]] = i \n",
248250
" if maxlen < i - st: \n",
249251
" maxlen = i - st \n",
250252
" start = st \n",
251253
" return string[start : start + maxlen] \n",
252-
"findLongestSubstring(\"hhhhhasdhhha\"){}"
254+
"findLongestSubstring(\"hhhhhasdhhha\")"
253255
]
254256
},
255257
{

Week4_Ligang_Zhang.ipynb

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -213,18 +213,20 @@
213213
},
214214
{
215215
"cell_type": "code",
216-
"execution_count": 36,
216+
"execution_count": 44,
217217
"metadata": {
218218
"scrolled": true
219219
},
220220
"outputs": [
221221
{
222-
"ename": "IndentationError",
223-
"evalue": "unindent does not match any outer indentation level (<tokenize>, line 17)",
224-
"output_type": "error",
225-
"traceback": [
226-
"\u001b[1;36m File \u001b[1;32m\"<tokenize>\"\u001b[1;36m, line \u001b[1;32m17\u001b[0m\n\u001b[1;33m pos[string[i]] = i\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mIndentationError\u001b[0m\u001b[1;31m:\u001b[0m unindent does not match any outer indentation level\n"
227-
]
222+
"data": {
223+
"text/plain": [
224+
"'asdhhh'"
225+
]
226+
},
227+
"execution_count": 44,
228+
"metadata": {},
229+
"output_type": "execute_result"
228230
}
229231
],
230232
"source": [
@@ -239,17 +241,17 @@
239241
" if string[i] not in pos: \n",
240242
" pos[string[i]] = i \n",
241243
" else: \n",
242-
" currlen = i - st \n",
243-
" if maxlen < currlen: \n",
244-
" maxlen = currlen \n",
245-
" start = st \n",
244+
" currlen = i - st \n",
245+
" if maxlen < currlen: \n",
246+
" maxlen = currlen \n",
247+
" start = st \n",
246248
" st = pos[string[i]] + 1\n",
247249
" pos[string[i]] = i \n",
248250
" if maxlen < i - st: \n",
249251
" maxlen = i - st \n",
250252
" start = st \n",
251253
" return string[start : start + maxlen] \n",
252-
"findLongestSubstring(\"hhhhhasdhhha\"){}"
254+
"findLongestSubstring(\"hhhhhasdhhha\")"
253255
]
254256
},
255257
{

0 commit comments

Comments
 (0)