commit a1fff22f547df1ada4476f464cd3599c741019cd Author: mnerv Date: Wed Oct 4 16:42:27 2023 +0200 Initial commit diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1ca8613 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..260b170 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Coding Tests + diff --git a/leetcode/longestsubstringwithoutrepeatingcharacters.c b/leetcode/longestsubstringwithoutrepeatingcharacters.c new file mode 100644 index 0000000..fd7448d --- /dev/null +++ b/leetcode/longestsubstringwithoutrepeatingcharacters.c @@ -0,0 +1,13 @@ +#include +#include + +int lengthOfLongestSubstring(char * s) { +} + +int main() { + assert(lengthOfLongestSubstring("abcabcbb") == 3); + assert(lengthOfLongestSubstring("bbbbb") == 1); + assert(lengthOfLongestSubstring("pwwkew") == 3); + return 0; +} +