fix: typo in comments of leetcode-3 (#931)

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Liu Yihua 2022-01-12 01:28:27 +08:00 committed by GitHub
parent ef9878627d
commit bd06a9f424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ int lengthOfLongestSubstring(char *str)
if (!n)
return 0;
int L_len = 1; // lenght of longest substring
int C_len = 1; // lenght of current substring
int L_len = 1; // length of longest substring
int C_len = 1; // length of current substring
int P_ind, i; // P_ind for previous index
int visited[256]; // visited will keep track of visiting char for the last