Initial commit
This commit is contained in:
15
.editorconfig
Normal file
15
.editorconfig
Normal file
@@ -0,0 +1,15 @@
|
||||
[*]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.{ts,js,tsx,jsx,lua,html,css,yml,json}]
|
||||
indent_size = 2
|
||||
|
||||
[*.go]
|
||||
indent_style = tab
|
||||
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
13
leetcode/longestsubstringwithoutrepeatingcharacters.c
Normal file
13
leetcode/longestsubstringwithoutrepeatingcharacters.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
int lengthOfLongestSubstring(char * s) {
|
||||
}
|
||||
|
||||
int main() {
|
||||
assert(lengthOfLongestSubstring("abcabcbb") == 3);
|
||||
assert(lengthOfLongestSubstring("bbbbb") == 1);
|
||||
assert(lengthOfLongestSubstring("pwwkew") == 3);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user