Skip to content

Commit 7b940b9

Browse files
committed
readme: updated list with url
1 parent 96b6f37 commit 7b940b9

File tree

3 files changed

+269
-377
lines changed

3 files changed

+269
-377
lines changed

HackerrankUtility/Hackerrank_Solution_Lister.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_valid_name(given_name):
2121
info_file.close()
2222
output_file_name = 'solution_list.html'
2323
f = open(output_file_name,'w')
24-
f.write('<ul>\n')
24+
f.write('\n')
2525
for line in info_file_lines:
2626
line = line.strip()
2727
if line == '':
@@ -34,16 +34,12 @@ def get_valid_name(given_name):
3434
folder_name = get_valid_name(subdomain_name)
3535
title_ar = re.findall(r'("[^"]*")',problem_list)
3636
title_ar_len = len(title_ar)
37-
f.write(' <li>'+subdomain_name+'\n')
38-
f.write(' <ul>\n')
37+
f.write('- '+subdomain_name+'\n')
3938
for title in title_ar:
4039
filename = get_valid_name(title[1:-1])
4140
filepath = folder_name + '\\' + filename+extension
42-
f.write(' <li>['+title[1:-1]+']('+filepath+')</li>\n')
43-
f.write(' </ul>\n')
44-
f.write(' </li>\n')
41+
f.write(' - ['+title[1:-1]+']('+filepath+')\n')
4542
subdomain_name = ''
4643
problem_list = ''
47-
f.write('</ul>\n')
4844
f.close()
4945
print('List generated successfully. Open '+output_file_name+' to view.')

HackerrankUtility/solution_list.html

Lines changed: 133 additions & 185 deletions
Original file line numberDiff line numberDiff line change
@@ -1,185 +1,133 @@
1-
<ul>
2-
<li>Introduction
3-
<ul>
4-
<li>[Say Hello, World! With Python](Introduction\SayHelloWorldWithPython.py)</li>
5-
<li>[Reading Raw Input](Introduction\ReadingRawInput.py)</li>
6-
<li>[Python If-Else](Introduction\PythonIfElse.py)</li>
7-
<li>[Arithmetic Operators](Introduction\ArithmeticOperators.py)</li>
8-
<li>[Python: Division](Introduction\PythonDivision.py)</li>
9-
<li>[Loops](Introduction\Loops.py)</li>
10-
<li>[Write a function](Introduction\Writeafunction.py)</li>
11-
<li>[Print Function](Introduction\PrintFunction.py)</li>
12-
</ul>
13-
</li>
14-
<li>Basic Data Types
15-
<ul>
16-
<li>[Lists](BasicDataTypes\Lists.py)</li>
17-
<li>[Tuples](BasicDataTypes\Tuples.py)</li>
18-
<li>[Sets - Symmetric Difference](BasicDataTypes\SetsSymmetricDifference.py)</li>
19-
<li>[List Comprehensions](BasicDataTypes\ListComprehensions.py)</li>
20-
<li>[Find the Second Largest Number](BasicDataTypes\FindtheSecondLargestNumber.py)</li>
21-
<li>[Nested Lists](BasicDataTypes\NestedLists.py)</li>
22-
<li>[Finding the percentage](BasicDataTypes\Findingthepercentage.py)</li>
23-
</ul>
24-
</li>
25-
<li>Strings
26-
<ul>
27-
<li>[sWAP cASE](Strings\sWAPcASE.py)</li>
28-
<li>[String Split and Join](Strings\StringSplitandJoin.py)</li>
29-
<li>[Whats Your Name?](Strings\WhatsYourName.py)</li>
30-
<li>[Mutations](Strings\Mutations.py)</li>
31-
<li>[Find a string](Strings\Findastring.py)</li>
32-
<li>[String Validators](Strings\StringValidators.py)</li>
33-
<li>[Text Alignment](Strings\TextAlignment.py)</li>
34-
<li>[Text Wrap](Strings\TextWrap.py)</li>
35-
<li>[Designer Door Mat](Strings\DesignerDoorMat.py)</li>
36-
<li>[String Formatting](Strings\StringFormatting.py)</li>
37-
<li>[Alphabet Rangoli](Strings\AlphabetRangoli.py)</li>
38-
<li>[Capitalize!](Strings\Capitalize.py)</li>
39-
<li>[The Minion Game](Strings\TheMinionGame.py)</li>
40-
</ul>
41-
</li>
42-
<li>Sets
43-
<ul>
44-
<li>[Introduction to Sets](Sets\IntroductiontoSets.py)</li>
45-
<li>[Symmetric Difference](Sets\SymmetricDifference.py)</li>
46-
<li>[No Idea!](Sets\NoIdea.py)</li>
47-
<li>[Set .add()](Sets\Setadd.py)</li>
48-
<li>[Set .discard(), .remove() &amp; .pop()](Sets\Setdiscardremoveamppop.py)</li>
49-
<li>[Set .union() Operation](Sets\SetunionOperation.py)</li>
50-
<li>[Set .intersection() Operation](Sets\SetintersectionOperation.py)</li>
51-
<li>[Set .difference() Operation](Sets\SetdifferenceOperation.py)</li>
52-
<li>[Set .symmetric_difference() Operation](Sets\Setsymmetric_differenceOperation.py)</li>
53-
<li>[Set Mutations](Sets\SetMutations.py)</li>
54-
<li>[The Captains Room](Sets\TheCaptainsRoom.py)</li>
55-
<li>[Check Subset](Sets\CheckSubset.py)</li>
56-
<li>[Check Strict Superset](Sets\CheckStrictSuperset.py)</li>
57-
</ul>
58-
</li>
59-
<li>Math
60-
<ul>
61-
<li>[Polar Coordinates](Math\PolarCoordinates.py)</li>
62-
<li>[Find Angle MBC](Math\FindAngleMBC.py)</li>
63-
<li>[Triangle Quest 2](Math\TriangleQuest2.py)</li>
64-
<li>[Mod Divmod](Math\ModDivmod.py)</li>
65-
<li>[Power - Mod Power](Math\PowerModPower.py)</li>
66-
<li>[Integers Come In All Sizes](Math\IntegersComeInAllSizes.py)</li>
67-
<li>[Triangle Quest](Math\TriangleQuest.py)</li>
68-
</ul>
69-
</li>
70-
<li>Itertools
71-
<ul>
72-
<li>[itertools.product()](Itertools\itertoolsproduct.py)</li>
73-
<li>[itertools.permutations()](Itertools\itertoolspermutations.py)</li>
74-
<li>[itertools.combinations()](Itertools\itertoolscombinations.py)</li>
75-
<li>[itertools.combinations_with_replacement()](Itertools\itertoolscombinations_with_replacement.py)</li>
76-
<li>[Compress the String!](Itertools\CompresstheString.py)</li>
77-
<li>[Iterables and Iterators](Itertools\IterablesandIterators.py)</li>
78-
<li>[Maximize It!](Itertools\MaximizeIt.py)</li>
79-
</ul>
80-
</li>
81-
<li>Collections
82-
<ul>
83-
<li>[collections.Counter()](Collections\collectionsCounter.py)</li>
84-
<li>[DefaultDict Tutorial](Collections\DefaultDictTutorial.py)</li>
85-
<li>[Collections.namedtuple()](Collections\Collectionsnamedtuple.py)</li>
86-
<li>[Collections.OrderedDict()](Collections\CollectionsOrderedDict.py)</li>
87-
<li>[Word Order](Collections\WordOrder.py)</li>
88-
<li>[Collections.deque()](Collections\Collectionsdeque.py)</li>
89-
<li>[Piling Up!](Collections\PilingUp.py)</li>
90-
<li>[Most Common](Collections\MostCommon.py)</li>
91-
</ul>
92-
</li>
93-
<li>Date and Time
94-
<ul>
95-
<li>[Calendar Module](DateandTime\CalendarModule.py)</li>
96-
<li>[Time Delta](DateandTime\TimeDelta.py)</li>
97-
</ul>
98-
</li>
99-
<li>Errors and Exceptions
100-
<ul>
101-
<li>[Exceptions](ErrorsandExceptions\Exceptions.py)</li>
102-
<li>[Incorrect Regex](ErrorsandExceptions\IncorrectRegex.py)</li>
103-
</ul>
104-
</li>
105-
<li>Classes
106-
<ul>
107-
<li>[Classes: Dealing with Complex Numbers](Classes\ClassesDealingwithComplexNumbers.py)</li>
108-
<li>[Class 2 - Find the Torsional Angle](Classes\Class2FindtheTorsionalAngle.py)</li>
109-
</ul>
110-
</li>
111-
<li>Built-Ins
112-
<ul>
113-
<li>[Zipped!](BuiltIns\Zipped.py)</li>
114-
<li>[Input()](BuiltIns\Input.py)</li>
115-
<li>[Python Evaluation](BuiltIns\PythonEvaluation.py)</li>
116-
<li>[Sort Data](BuiltIns\SortData.py)</li>
117-
<li>[Any or All](BuiltIns\AnyorAll.py)</li>
118-
<li>[ginortS](BuiltIns\ginortS.py)</li>
119-
</ul>
120-
</li>
121-
<li>Python Functionals
122-
<ul>
123-
<li>[Map and Lambda Function](PythonFunctionals\MapandLambdaFunction.py)</li>
124-
<li>[Validating Email Addresses With a Filter](PythonFunctionals\ValidatingEmailAddressesWithaFilter.py)</li>
125-
</ul>
126-
</li>
127-
<li>Regex and Parsing
128-
<ul>
129-
<li>[Introduction to Regex Module](RegexandParsing\IntroductiontoRegexModule.py)</li>
130-
<li>[Re.split()](RegexandParsing\Resplit.py)</li>
131-
<li>[Group(), Groups() &amp; Groupdict()](RegexandParsing\GroupGroupsampGroupdict.py)</li>
132-
<li>[Re.findall() &amp; Re.finditer()](RegexandParsing\RefindallampRefinditer.py)</li>
133-
<li>[Re.start() &amp; Re.end()](RegexandParsing\RestartampReend.py)</li>
134-
<li>[Regex Substitution](RegexandParsing\RegexSubstitution.py)</li>
135-
<li>[Validating Roman Numerals](RegexandParsing\ValidatingRomanNumerals.py)</li>
136-
<li>[Validating phone numbers](RegexandParsing\Validatingphonenumbers.py)</li>
137-
<li>[Validating and Parsing Email Addresses](RegexandParsing\ValidatingandParsingEmailAddresses.py)</li>
138-
<li>[Hex Color Code](RegexandParsing\HexColorCode.py)</li>
139-
<li>[HTML Parser - Part 1](RegexandParsing\HTMLParserPart1.py)</li>
140-
<li>[HTML Parser - Part 2](RegexandParsing\HTMLParserPart2.py)</li>
141-
<li>[Detect HTML Tags, Attributes and Attribute Values](RegexandParsing\DetectHTMLTagsAttributesandAttributeValues.py)</li>
142-
<li>[Validating UID](RegexandParsing\ValidatingUID.py)</li>
143-
<li>[Validating Credit Card Numbers](RegexandParsing\ValidatingCreditCardNumbers.py)</li>
144-
<li>[Validating Postal Codes](RegexandParsing\ValidatingPostalCodes.py)</li>
145-
<li>[Matrix Script](RegexandParsing\MatrixScript.py)</li>
146-
</ul>
147-
</li>
148-
<li>XML
149-
<ul>
150-
<li>[XML 1 - Find the Score](XML\XML1FindtheScore.py)</li>
151-
<li>[XML2 - Find the Maximum Depth](XML\XML2FindtheMaximumDepth.py)</li>
152-
</ul>
153-
</li>
154-
<li>Closures and Decorators
155-
<ul>
156-
<li>[Standardize Mobile Number Using Decorators](ClosuresandDecorators\StandardizeMobileNumberUsingDecorators.py)</li>
157-
<li>[Decorators 2 - Name Directory](ClosuresandDecorators\Decorators2NameDirectory.py)</li>
158-
</ul>
159-
</li>
160-
<li>Numpy
161-
<ul>
162-
<li>[Arrays](Numpy\Arrays.py)</li>
163-
<li>[Shape and Reshape](Numpy\ShapeandReshape.py)</li>
164-
<li>[Transpose and Flatten](Numpy\TransposeandFlatten.py)</li>
165-
<li>[Concatenate](Numpy\Concatenate.py)</li>
166-
<li>[Zeros and Ones](Numpy\ZerosandOnes.py)</li>
167-
<li>[Eye and Identity](Numpy\EyeandIdentity.py)</li>
168-
<li>[Array Mathematics](Numpy\ArrayMathematics.py)</li>
169-
<li>[Floor, Ceil and Rint](Numpy\FloorCeilandRint.py)</li>
170-
<li>[Sum and Prod](Numpy\SumandProd.py)</li>
171-
<li>[Min and Max](Numpy\MinandMax.py)</li>
172-
<li>[Mean, Var, and Std](Numpy\MeanVarandStd.py)</li>
173-
<li>[Dot and Cross](Numpy\DotandCross.py)</li>
174-
<li>[Inner and Outer](Numpy\InnerandOuter.py)</li>
175-
<li>[Polynomials](Numpy\Polynomials.py)</li>
176-
<li>[Linear Algebra](Numpy\LinearAlgebra.py)</li>
177-
</ul>
178-
</li>
179-
<li>Debugging
180-
<ul>
181-
<li>[Words Score](Debugging\WordsScore.py)</li>
182-
<li>[Default Arguments](Debugging\DefaultArguments.py)</li>
183-
</ul>
184-
</li>
185-
</ul>
1+
2+
- Introduction
3+
- [Say Hello, World! With Python](Introduction\SayHelloWorldWithPython.py)
4+
- [Reading Raw Input](Introduction\ReadingRawInput.py)
5+
- [Python If-Else](Introduction\PythonIfElse.py)
6+
- [Arithmetic Operators](Introduction\ArithmeticOperators.py)
7+
- [Python: Division](Introduction\PythonDivision.py)
8+
- [Loops](Introduction\Loops.py)
9+
- [Write a function](Introduction\Writeafunction.py)
10+
- [Print Function](Introduction\PrintFunction.py)
11+
- Basic Data Types
12+
- [Lists](BasicDataTypes\Lists.py)
13+
- [Tuples](BasicDataTypes\Tuples.py)
14+
- [Sets - Symmetric Difference](BasicDataTypes\SetsSymmetricDifference.py)
15+
- [List Comprehensions](BasicDataTypes\ListComprehensions.py)
16+
- [Find the Second Largest Number](BasicDataTypes\FindtheSecondLargestNumber.py)
17+
- [Nested Lists](BasicDataTypes\NestedLists.py)
18+
- [Finding the percentage](BasicDataTypes\Findingthepercentage.py)
19+
- Strings
20+
- [sWAP cASE](Strings\sWAPcASE.py)
21+
- [String Split and Join](Strings\StringSplitandJoin.py)
22+
- [Whats Your Name?](Strings\WhatsYourName.py)
23+
- [Mutations](Strings\Mutations.py)
24+
- [Find a string](Strings\Findastring.py)
25+
- [String Validators](Strings\StringValidators.py)
26+
- [Text Alignment](Strings\TextAlignment.py)
27+
- [Text Wrap](Strings\TextWrap.py)
28+
- [Designer Door Mat](Strings\DesignerDoorMat.py)
29+
- [String Formatting](Strings\StringFormatting.py)
30+
- [Alphabet Rangoli](Strings\AlphabetRangoli.py)
31+
- [Capitalize!](Strings\Capitalize.py)
32+
- [The Minion Game](Strings\TheMinionGame.py)
33+
- Sets
34+
- [Introduction to Sets](Sets\IntroductiontoSets.py)
35+
- [Symmetric Difference](Sets\SymmetricDifference.py)
36+
- [No Idea!](Sets\NoIdea.py)
37+
- [Set .add()](Sets\Setadd.py)
38+
- [Set .discard(), .remove() &amp; .pop()](Sets\Setdiscardremoveamppop.py)
39+
- [Set .union() Operation](Sets\SetunionOperation.py)
40+
- [Set .intersection() Operation](Sets\SetintersectionOperation.py)
41+
- [Set .difference() Operation](Sets\SetdifferenceOperation.py)
42+
- [Set .symmetric_difference() Operation](Sets\Setsymmetric_differenceOperation.py)
43+
- [Set Mutations](Sets\SetMutations.py)
44+
- [The Captains Room](Sets\TheCaptainsRoom.py)
45+
- [Check Subset](Sets\CheckSubset.py)
46+
- [Check Strict Superset](Sets\CheckStrictSuperset.py)
47+
- Math
48+
- [Polar Coordinates](Math\PolarCoordinates.py)
49+
- [Find Angle MBC](Math\FindAngleMBC.py)
50+
- [Triangle Quest 2](Math\TriangleQuest2.py)
51+
- [Mod Divmod](Math\ModDivmod.py)
52+
- [Power - Mod Power](Math\PowerModPower.py)
53+
- [Integers Come In All Sizes](Math\IntegersComeInAllSizes.py)
54+
- [Triangle Quest](Math\TriangleQuest.py)
55+
- Itertools
56+
- [itertools.product()](Itertools\itertoolsproduct.py)
57+
- [itertools.permutations()](Itertools\itertoolspermutations.py)
58+
- [itertools.combinations()](Itertools\itertoolscombinations.py)
59+
- [itertools.combinations_with_replacement()](Itertools\itertoolscombinations_with_replacement.py)
60+
- [Compress the String!](Itertools\CompresstheString.py)
61+
- [Iterables and Iterators](Itertools\IterablesandIterators.py)
62+
- [Maximize It!](Itertools\MaximizeIt.py)
63+
- Collections
64+
- [collections.Counter()](Collections\collectionsCounter.py)
65+
- [DefaultDict Tutorial](Collections\DefaultDictTutorial.py)
66+
- [Collections.namedtuple()](Collections\Collectionsnamedtuple.py)
67+
- [Collections.OrderedDict()](Collections\CollectionsOrderedDict.py)
68+
- [Word Order](Collections\WordOrder.py)
69+
- [Collections.deque()](Collections\Collectionsdeque.py)
70+
- [Piling Up!](Collections\PilingUp.py)
71+
- [Most Common](Collections\MostCommon.py)
72+
- Date and Time
73+
- [Calendar Module](DateandTime\CalendarModule.py)
74+
- [Time Delta](DateandTime\TimeDelta.py)
75+
- Errors and Exceptions
76+
- [Exceptions](ErrorsandExceptions\Exceptions.py)
77+
- [Incorrect Regex](ErrorsandExceptions\IncorrectRegex.py)
78+
- Classes
79+
- [Classes: Dealing with Complex Numbers](Classes\ClassesDealingwithComplexNumbers.py)
80+
- [Class 2 - Find the Torsional Angle](Classes\Class2FindtheTorsionalAngle.py)
81+
- Built-Ins
82+
- [Zipped!](BuiltIns\Zipped.py)
83+
- [Input()](BuiltIns\Input.py)
84+
- [Python Evaluation](BuiltIns\PythonEvaluation.py)
85+
- [Sort Data](BuiltIns\SortData.py)
86+
- [Any or All](BuiltIns\AnyorAll.py)
87+
- [ginortS](BuiltIns\ginortS.py)
88+
- Python Functionals
89+
- [Map and Lambda Function](PythonFunctionals\MapandLambdaFunction.py)
90+
- [Validating Email Addresses With a Filter](PythonFunctionals\ValidatingEmailAddressesWithaFilter.py)
91+
- Regex and Parsing
92+
- [Introduction to Regex Module](RegexandParsing\IntroductiontoRegexModule.py)
93+
- [Re.split()](RegexandParsing\Resplit.py)
94+
- [Group(), Groups() &amp; Groupdict()](RegexandParsing\GroupGroupsampGroupdict.py)
95+
- [Re.findall() &amp; Re.finditer()](RegexandParsing\RefindallampRefinditer.py)
96+
- [Re.start() &amp; Re.end()](RegexandParsing\RestartampReend.py)
97+
- [Regex Substitution](RegexandParsing\RegexSubstitution.py)
98+
- [Validating Roman Numerals](RegexandParsing\ValidatingRomanNumerals.py)
99+
- [Validating phone numbers](RegexandParsing\Validatingphonenumbers.py)
100+
- [Validating and Parsing Email Addresses](RegexandParsing\ValidatingandParsingEmailAddresses.py)
101+
- [Hex Color Code](RegexandParsing\HexColorCode.py)
102+
- [HTML Parser - Part 1](RegexandParsing\HTMLParserPart1.py)
103+
- [HTML Parser - Part 2](RegexandParsing\HTMLParserPart2.py)
104+
- [Detect HTML Tags, Attributes and Attribute Values](RegexandParsing\DetectHTMLTagsAttributesandAttributeValues.py)
105+
- [Validating UID](RegexandParsing\ValidatingUID.py)
106+
- [Validating Credit Card Numbers](RegexandParsing\ValidatingCreditCardNumbers.py)
107+
- [Validating Postal Codes](RegexandParsing\ValidatingPostalCodes.py)
108+
- [Matrix Script](RegexandParsing\MatrixScript.py)
109+
- XML
110+
- [XML 1 - Find the Score](XML\XML1FindtheScore.py)
111+
- [XML2 - Find the Maximum Depth](XML\XML2FindtheMaximumDepth.py)
112+
- Closures and Decorators
113+
- [Standardize Mobile Number Using Decorators](ClosuresandDecorators\StandardizeMobileNumberUsingDecorators.py)
114+
- [Decorators 2 - Name Directory](ClosuresandDecorators\Decorators2NameDirectory.py)
115+
- Numpy
116+
- [Arrays](Numpy\Arrays.py)
117+
- [Shape and Reshape](Numpy\ShapeandReshape.py)
118+
- [Transpose and Flatten](Numpy\TransposeandFlatten.py)
119+
- [Concatenate](Numpy\Concatenate.py)
120+
- [Zeros and Ones](Numpy\ZerosandOnes.py)
121+
- [Eye and Identity](Numpy\EyeandIdentity.py)
122+
- [Array Mathematics](Numpy\ArrayMathematics.py)
123+
- [Floor, Ceil and Rint](Numpy\FloorCeilandRint.py)
124+
- [Sum and Prod](Numpy\SumandProd.py)
125+
- [Min and Max](Numpy\MinandMax.py)
126+
- [Mean, Var, and Std](Numpy\MeanVarandStd.py)
127+
- [Dot and Cross](Numpy\DotandCross.py)
128+
- [Inner and Outer](Numpy\InnerandOuter.py)
129+
- [Polynomials](Numpy\Polynomials.py)
130+
- [Linear Algebra](Numpy\LinearAlgebra.py)
131+
- Debugging
132+
- [Words Score](Debugging\WordsScore.py)
133+
- [Default Arguments](Debugging\DefaultArguments.py)

0 commit comments

Comments
 (0)