Skip to content

Commit 2befeec

Browse files
committed
Add time and space complexity documentation to LongestNonRepetitiveSubstring
1 parent 29ce2ef commit 2befeec

File tree

1,542 files changed

+132834
-132828
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,542 files changed

+132834
-132828
lines changed

.clang-format

Lines changed: 136 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -1,136 +1,136 @@
1-
---
2-
Language: Java
3-
AccessModifierOffset: -4
4-
AlignAfterOpenBracket: DontAlign
5-
AlignConsecutiveMacros: false
6-
AlignConsecutiveAssignments: false
7-
AlignConsecutiveDeclarations: false
8-
AlignEscapedNewlines: Right
9-
AlignOperands: false
10-
AlignTrailingComments: false
11-
AllowAllArgumentsOnNextLine: true
12-
AllowAllConstructorInitializersOnNextLine: true
13-
AllowAllParametersOfDeclarationOnNextLine: true
14-
AllowShortBlocksOnASingleLine: Never
15-
AllowShortCaseLabelsOnASingleLine: false
16-
AllowShortFunctionsOnASingleLine: false
17-
AllowShortLambdasOnASingleLine: All
18-
AllowShortIfStatementsOnASingleLine: true
19-
AllowShortLoopsOnASingleLine: true
20-
AlwaysBreakAfterDefinitionReturnType: None
21-
AlwaysBreakAfterReturnType: None
22-
AlwaysBreakBeforeMultilineStrings: false
23-
AlwaysBreakTemplateDeclarations: MultiLine
24-
BinPackArguments: true
25-
BinPackParameters: true
26-
BraceWrapping:
27-
AfterCaseLabel: false
28-
AfterClass: false
29-
AfterControlStatement: false
30-
AfterEnum: false
31-
AfterFunction: false
32-
AfterNamespace: false
33-
AfterObjCDeclaration: false
34-
AfterStruct: false
35-
AfterUnion: false
36-
AfterExternBlock: false
37-
BeforeCatch: false
38-
BeforeElse: false
39-
IndentBraces: false
40-
SplitEmptyFunction: true
41-
SplitEmptyRecord: true
42-
SplitEmptyNamespace: true
43-
BreakBeforeBinaryOperators: All
44-
BreakBeforeBraces: Custom
45-
BreakBeforeInheritanceComma: false
46-
BreakInheritanceList: BeforeColon
47-
BreakBeforeTernaryOperators: true
48-
BreakConstructorInitializersBeforeComma: false
49-
BreakConstructorInitializers: BeforeComma
50-
BreakAfterJavaFieldAnnotations: false
51-
BreakStringLiterals: true
52-
ColumnLimit: 300
53-
CommentPragmas: '^ IWYU pragma:'
54-
CompactNamespaces: false
55-
ConstructorInitializerAllOnOneLineOrOnePerLine: false
56-
ConstructorInitializerIndentWidth: 4
57-
ContinuationIndentWidth: 4
58-
Cpp11BracedListStyle: true
59-
DeriveLineEnding: true
60-
DerivePointerAlignment: false
61-
DisableFormat: false
62-
ExperimentalAutoDetectBinPacking: false
63-
FixNamespaceComments: false
64-
ForEachMacros:
65-
- foreach
66-
- Q_FOREACH
67-
- BOOST_FOREACH
68-
IncludeBlocks: Preserve
69-
IncludeCategories:
70-
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
71-
Priority: 2
72-
SortPriority: 0
73-
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
74-
Priority: 3
75-
SortPriority: 0
76-
- Regex: '.*'
77-
Priority: 1
78-
SortPriority: 0
79-
IncludeIsMainRegex: '(Test)?$'
80-
IncludeIsMainSourceRegex: ''
81-
IndentCaseLabels: false
82-
IndentGotoLabels: true
83-
IndentPPDirectives: None
84-
IndentWidth: 4
85-
IndentWrappedFunctionNames: false
86-
InsertNewlineAtEOF: true
87-
JavaScriptQuotes: Leave
88-
JavaScriptWrapImports: true
89-
KeepEmptyLinesAtTheStartOfBlocks: true
90-
MacroBlockBegin: ''
91-
MacroBlockEnd: ''
92-
MaxEmptyLinesToKeep: 1
93-
NamespaceIndentation: Inner
94-
ObjCBinPackProtocolList: Auto
95-
ObjCBlockIndentWidth: 4
96-
ObjCSpaceAfterProperty: true
97-
ObjCSpaceBeforeProtocolList: true
98-
PenaltyBreakAssignment: 2
99-
PenaltyBreakBeforeFirstCallParameter: 19
100-
PenaltyBreakComment: 300
101-
PenaltyBreakFirstLessLess: 120
102-
PenaltyBreakString: 1000
103-
PenaltyBreakTemplateDeclaration: 10
104-
PenaltyExcessCharacter: 1000000
105-
PenaltyReturnTypeOnItsOwnLine: 60
106-
PointerAlignment: Left
107-
ReflowComments: true
108-
SortIncludes: true
109-
SortUsingDeclarations: true
110-
SpaceAfterCStyleCast: true
111-
SpaceAfterLogicalNot: false
112-
SpaceAfterTemplateKeyword: true
113-
SpaceBeforeAssignmentOperators: true
114-
SpaceBeforeCpp11BracedList: false
115-
SpaceBeforeCtorInitializerColon: true
116-
SpaceBeforeInheritanceColon: true
117-
SpaceBeforeParens: ControlStatements
118-
SpaceBeforeRangeBasedForLoopColon: true
119-
SpaceInEmptyBlock: false
120-
SpaceInEmptyParentheses: false
121-
SpacesBeforeTrailingComments: 1
122-
SpacesInAngles: false
123-
SpacesInConditionalStatement: false
124-
SpacesInContainerLiterals: false
125-
SpacesInCStyleCastParentheses: false
126-
SpacesInParentheses: false
127-
SpacesInSquareBrackets: false
128-
SpaceBeforeSquareBrackets: false
129-
Standard: Latest
130-
StatementMacros:
131-
- Q_UNUSED
132-
- QT_REQUIRE_VERSION
133-
TabWidth: 8
134-
UseCRLF: false
135-
UseTab: Never
136-
...
1+
---
2+
Language: Java
3+
AccessModifierOffset: -4
4+
AlignAfterOpenBracket: DontAlign
5+
AlignConsecutiveMacros: false
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveDeclarations: false
8+
AlignEscapedNewlines: Right
9+
AlignOperands: false
10+
AlignTrailingComments: false
11+
AllowAllArgumentsOnNextLine: true
12+
AllowAllConstructorInitializersOnNextLine: true
13+
AllowAllParametersOfDeclarationOnNextLine: true
14+
AllowShortBlocksOnASingleLine: Never
15+
AllowShortCaseLabelsOnASingleLine: false
16+
AllowShortFunctionsOnASingleLine: false
17+
AllowShortLambdasOnASingleLine: All
18+
AllowShortIfStatementsOnASingleLine: true
19+
AllowShortLoopsOnASingleLine: true
20+
AlwaysBreakAfterDefinitionReturnType: None
21+
AlwaysBreakAfterReturnType: None
22+
AlwaysBreakBeforeMultilineStrings: false
23+
AlwaysBreakTemplateDeclarations: MultiLine
24+
BinPackArguments: true
25+
BinPackParameters: true
26+
BraceWrapping:
27+
AfterCaseLabel: false
28+
AfterClass: false
29+
AfterControlStatement: false
30+
AfterEnum: false
31+
AfterFunction: false
32+
AfterNamespace: false
33+
AfterObjCDeclaration: false
34+
AfterStruct: false
35+
AfterUnion: false
36+
AfterExternBlock: false
37+
BeforeCatch: false
38+
BeforeElse: false
39+
IndentBraces: false
40+
SplitEmptyFunction: true
41+
SplitEmptyRecord: true
42+
SplitEmptyNamespace: true
43+
BreakBeforeBinaryOperators: All
44+
BreakBeforeBraces: Custom
45+
BreakBeforeInheritanceComma: false
46+
BreakInheritanceList: BeforeColon
47+
BreakBeforeTernaryOperators: true
48+
BreakConstructorInitializersBeforeComma: false
49+
BreakConstructorInitializers: BeforeComma
50+
BreakAfterJavaFieldAnnotations: false
51+
BreakStringLiterals: true
52+
ColumnLimit: 300
53+
CommentPragmas: '^ IWYU pragma:'
54+
CompactNamespaces: false
55+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
56+
ConstructorInitializerIndentWidth: 4
57+
ContinuationIndentWidth: 4
58+
Cpp11BracedListStyle: true
59+
DeriveLineEnding: true
60+
DerivePointerAlignment: false
61+
DisableFormat: false
62+
ExperimentalAutoDetectBinPacking: false
63+
FixNamespaceComments: false
64+
ForEachMacros:
65+
- foreach
66+
- Q_FOREACH
67+
- BOOST_FOREACH
68+
IncludeBlocks: Preserve
69+
IncludeCategories:
70+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
71+
Priority: 2
72+
SortPriority: 0
73+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
74+
Priority: 3
75+
SortPriority: 0
76+
- Regex: '.*'
77+
Priority: 1
78+
SortPriority: 0
79+
IncludeIsMainRegex: '(Test)?$'
80+
IncludeIsMainSourceRegex: ''
81+
IndentCaseLabels: false
82+
IndentGotoLabels: true
83+
IndentPPDirectives: None
84+
IndentWidth: 4
85+
IndentWrappedFunctionNames: false
86+
InsertNewlineAtEOF: true
87+
JavaScriptQuotes: Leave
88+
JavaScriptWrapImports: true
89+
KeepEmptyLinesAtTheStartOfBlocks: true
90+
MacroBlockBegin: ''
91+
MacroBlockEnd: ''
92+
MaxEmptyLinesToKeep: 1
93+
NamespaceIndentation: Inner
94+
ObjCBinPackProtocolList: Auto
95+
ObjCBlockIndentWidth: 4
96+
ObjCSpaceAfterProperty: true
97+
ObjCSpaceBeforeProtocolList: true
98+
PenaltyBreakAssignment: 2
99+
PenaltyBreakBeforeFirstCallParameter: 19
100+
PenaltyBreakComment: 300
101+
PenaltyBreakFirstLessLess: 120
102+
PenaltyBreakString: 1000
103+
PenaltyBreakTemplateDeclaration: 10
104+
PenaltyExcessCharacter: 1000000
105+
PenaltyReturnTypeOnItsOwnLine: 60
106+
PointerAlignment: Left
107+
ReflowComments: true
108+
SortIncludes: true
109+
SortUsingDeclarations: true
110+
SpaceAfterCStyleCast: true
111+
SpaceAfterLogicalNot: false
112+
SpaceAfterTemplateKeyword: true
113+
SpaceBeforeAssignmentOperators: true
114+
SpaceBeforeCpp11BracedList: false
115+
SpaceBeforeCtorInitializerColon: true
116+
SpaceBeforeInheritanceColon: true
117+
SpaceBeforeParens: ControlStatements
118+
SpaceBeforeRangeBasedForLoopColon: true
119+
SpaceInEmptyBlock: false
120+
SpaceInEmptyParentheses: false
121+
SpacesBeforeTrailingComments: 1
122+
SpacesInAngles: false
123+
SpacesInConditionalStatement: false
124+
SpacesInContainerLiterals: false
125+
SpacesInCStyleCastParentheses: false
126+
SpacesInParentheses: false
127+
SpacesInSquareBrackets: false
128+
SpaceBeforeSquareBrackets: false
129+
Standard: Latest
130+
StatementMacros:
131+
- Q_UNUSED
132+
- QT_REQUIRE_VERSION
133+
TabWidth: 8
134+
UseCRLF: false
135+
UseTab: Never
136+
...

.devcontainer/Dockerfile

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/java/.devcontainer/base.Dockerfile
2-
3-
# [Choice] Java version (use -bullseye variants on local arm64/Apple Silicon): 11, 17, 11-bullseye, 17-bullseye, 11-buster, 17-buster
4-
ARG VARIANT="21-bullseye"
5-
FROM mcr.microsoft.com/vscode/devcontainers/java:1.1.0-${VARIANT}
6-
7-
# [Option] Install Maven
8-
ARG INSTALL_MAVEN="false"
9-
ARG MAVEN_VERSION=""
10-
# [Option] Install Gradle
11-
ARG INSTALL_GRADLE="false"
12-
ARG GRADLE_VERSION=""
13-
RUN if [ "${INSTALL_MAVEN}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install maven \"${MAVEN_VERSION}\""; fi \
14-
&& if [ "${INSTALL_GRADLE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install gradle \"${GRADLE_VERSION}\""; fi
15-
16-
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
17-
ARG NODE_VERSION="none"
18-
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
19-
20-
# [Optional] Uncomment this section to install additional OS packages.
21-
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
22-
# && apt-get -y install --no-install-recommends <your-package-list-here>
23-
24-
# [Optional] Uncomment this line to install global node packages.
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/java/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Java version (use -bullseye variants on local arm64/Apple Silicon): 11, 17, 11-bullseye, 17-bullseye, 11-buster, 17-buster
4+
ARG VARIANT="21-bullseye"
5+
FROM mcr.microsoft.com/vscode/devcontainers/java:1.1.0-${VARIANT}
6+
7+
# [Option] Install Maven
8+
ARG INSTALL_MAVEN="false"
9+
ARG MAVEN_VERSION=""
10+
# [Option] Install Gradle
11+
ARG INSTALL_GRADLE="false"
12+
ARG GRADLE_VERSION=""
13+
RUN if [ "${INSTALL_MAVEN}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install maven \"${MAVEN_VERSION}\""; fi \
14+
&& if [ "${INSTALL_GRADLE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install gradle \"${GRADLE_VERSION}\""; fi
15+
16+
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
17+
ARG NODE_VERSION="none"
18+
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
19+
20+
# [Optional] Uncomment this section to install additional OS packages.
21+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
22+
# && apt-get -y install --no-install-recommends <your-package-list-here>
23+
24+
# [Optional] Uncomment this line to install global node packages.
2525
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1

0 commit comments

Comments
 (0)