mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
fix: typo in comments of leetcode-3 (#931)
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
ef9878627d
commit
bd06a9f424
@ -5,8 +5,8 @@ int lengthOfLongestSubstring(char *str)
|
|||||||
if (!n)
|
if (!n)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
int L_len = 1; // lenght of longest substring
|
int L_len = 1; // length of longest substring
|
||||||
int C_len = 1; // lenght of current substring
|
int C_len = 1; // length of current substring
|
||||||
|
|
||||||
int P_ind, i; // P_ind for previous index
|
int P_ind, i; // P_ind for previous index
|
||||||
int visited[256]; // visited will keep track of visiting char for the last
|
int visited[256]; // visited will keep track of visiting char for the last
|
||||||
|
Loading…
x
Reference in New Issue
Block a user