Skip to content

Commit

Permalink
fix: typo in comments of leetcode-3 (TheAlgorithms#931)
Browse files Browse the repository at this point in the history
Co-authored-by: David Leal <[email protected]>
  • Loading branch information
yihuajack and Panquesito7 authored Jan 11, 2022
1 parent ef98786 commit bd06a9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leetcode/src/3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd06a9f

Please sign in to comment.