Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 06be395

Browse files
committed
Added print to debug
1 parent a33bd71 commit 06be395

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎Pattern sliding window/1.2-longest_sub_arr_length_of_distinct_char.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
if (win_end - win_start + 1) > max_length: # sub arr
5959
sub_str_arr = the_str[win_start: win_end + 1]
6060
max_length = max(max_length, win_end - win_start + 1)
61+
print(f"Updated max_length: {max_length}")
6162
print(f"max_length: {max_length}")
6263
print(f"longest sub-str: {sub_str_arr}")
6364

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /