Skip to content

Commit 04c30ef

Browse files
Add C++ implementation
Signed-off-by: begeekmyfriend <[email protected]>
1 parent 9fa2dd4 commit 04c30ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

0003_longest_substring_without_repeat/longest_substring_without_repeat.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#include <stdlib.h>
33
#include <string.h>
44

5-
static int lengthOfLongestSubstring(char *s)
5+
6+
int lengthOfLongestSubstring(char *s)
67
{
78
int offset[128];
89
int max_len = 0;

0 commit comments

Comments
 (0)